We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4041
    • 788 Posts
    This modification allows you to see the highlighted source of Snippets, Chunks, and Templates with line numbers using the Geshi Highlighter. I have found this to be extremely helpful when creating snippets due to the line numbers, and it just makes the code easier to decipher (my opinion grin)

    There are a couple of minor core file changes but very minimal and I commented the areas that were added. In case of newer core versions of the altered files, transfer a couple of lines of code and thats it.

    Included in the zip file is a file named "readme706_805am.txt" which has detailed install instructions and a list of the files which are affected. I’ll also attach the readme file here seperate in case you want to read it before you download the zip.

    Here are a couple of screenshots to show how it looks:
    chunk (html)

    chunk (javascript)

    snippet

    template


    Hopefully this will be useful to some folks...
      xforum
      http://frsbuilders.net (under construction) forum for evolution
      • 11975
      • 2,542 Posts
      wouawww

      Nice add-on. Should be really useful.


      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 33337
        • 3,975 Posts
        Great work Breezer!

        Remember! we have now proper place for all of your precious contributions: http://modxcms.com/downloads.html wink

        regards,

        zi
          Zaigham R - MODX Professional | Skype | Email | Twitter

          Digging the interwebs for #MODX gems and bringing it to you. modx.link
          • 7923
          • 4,213 Posts
          Nice work Breezer! Gonna definitely try this, Thanks!


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 15987
            • 786 Posts
            This looks really great! I will give it a try very soon smiley

            Thanks,
            Kyle
              • 4041
              • 788 Posts
              Thanks for the kind words grin

              Its a shame I’ve been sitting on this for about 6 months - it’s a worse shame I haven’t tried MODx before now undecided

              The reason I haven’t added this to the repository yet is I think I am going to change the coloring in the modx_template, probably by the weekend so I’ll add it then as long as nobody has any issues with it...
                xforum
                http://frsbuilders.net (under construction) forum for evolution
                • 7923
                • 4,213 Posts
                Quote from: breezer at Jul 06, 2006, 08:41 PM

                Its a shame I’ve been sitting on this for about 6 months - it’s a worse shame I haven’t tried MODx before now undecided
                Yea, finally, welcome to the community breezer! I’ve seen good stuff from you before in some other forum ;) ..looking forward to see more amazing stuff! Keep up the good work! grin


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • This looks to be an excellent mod, I’ll have a closer look tomorrow at some point. Just one thing, any chance that plugins could have the makeover as well? wink

                  All in all, great work Breezer smiley
                    Garry Nutting
                    Senior Developer
                    MODX, LLC

                    Email: [email protected]
                    Twitter: @garryn
                    Web: modx.com
                    • 4041
                    • 788 Posts
                    Plugins won’t be a problem, I’ll get that together and put it in a zip in the first post but it will probably be later tommorrow evening...

                    On a side note, if anyone who tries this has any suggestions for the coloring the code items when using the modx_template (used for highlighting the templates) add them here... that was my first try at makng a geshi template so it looks sorta odd to me.
                      xforum
                      http://frsbuilders.net (under construction) forum for evolution
                      • 18397
                      • 3,250 Posts
                      From a usability standpoint what if clicking the highlighted code switches it to a text box. That way we would not need to have 2 tabs for the code. Is this better or worse?