Menu

Request: TCL Sytax in 5.x

2008-08-07
2012-11-13
  • John Proctor

    John Proctor - 2008-08-07

    I love Notepad++ and I really can't imagine life without, but I do alot of programming in TCL and I absolutely love the syntax highlight features. In the latest version this has been removed and I have search everywhere for an alternative, but my alternative for now is to revert back to using 4.9. I hope I'm not the only one that misses the TCL syntax.

     
    • leohome

      leohome - 2008-08-13

      For me it works fine

       
    • Mike

      Mike - 2008-08-15

      I'm also seeing problems in 5.x - comment style is wrong, etc.

       
      • leohome

        leohome - 2008-08-15

        1/ OK, this is an old bug : see http://sourceforge.net/tracker/index.php?func=detail&aid=1589507&group_id=95717&atid=612382
        In notepad++ source code, tcl color highlighting settings are in the C languages group. That's the reason why the comments are wrongs...
        So, I have recently post 2 comments to solve this problem in order to have in notepad++ the same settings than in scite.

        wait and see.

        2/ I have tested my patch under npp 5.01 (because this is the only one I can compile with MinGW) and it works fine. Here are the syntax elements that can be customized :

        # comment line        :  OK
        $ subtitution         :  OK
        tcl/tk commands       :  OK
        ##### comment box     :  OK
        -xxx modifiers        :  OK
        "xx" in quote         :  OK
        number and hex number :  OK
        ...
        see the screenshot (under wine) : http://leohome.free.fr/download/npp/npp-tclsyntax1.png

        if you want to test :
        1/ download the patched version (5.01.1) here : http://leohome.free.fr/download/npp/notepad++.zip
        NOTE : this version don't use %APPDATA (the configuration files are in the install directory)
        2/ unzip the downloaded file where you want in your hard drive : all the files are in notepad++ directory
        3/ if you want english localisation, open the explorer, go in the directory where npp was unziped and remove nativeLang.xml
        4/ to start npp, double click on notepad++.exe : enjoy

        HTH

         
        • Mike

          Mike - 2008-08-15

          Very nice, thanks for the reply!  I'm not actively using Tcl at the moment so I will hope that it gets into an official build, but if not I'll give your patch a shot.  Thanks again

           
      • Mike

        Mike - 2008-08-15

        Actually I just went back as far as 4.3 and I see the same problems - does anyone see this?  The one problem in particular is that it is using c-style comments rather than "#" - those are styled as preprocessor.