Menu

user Defined Syntax

2008-03-13
2012-11-13
  • Nobody/Anonymous

    So i didn't like the default coloring of the java syntax highlighting so i decided to write my own. I tried editing the default xml files but it wouldn't recognize the third keyword tag i put in.  So when i wrote the custom one it wont recognize the { and } as open folder characters when they are also listed as operators. The same thing happens with the // and /* */ comments when the / * are listed as operators. Is there anything i can do?

     
    • Nobody/Anonymous

      Well i tried to at first and its not working as i want it to ((So when i wrote the custom one it wont recognize the { and } as open folder characters when they are also listed as operators. The same thing happens with the // and /* */ comments when the / * are listed as operators.))  So thats when i tried to edit the default

       
    • Nobody/Anonymous

      The problem with the user defined language is already known. When comment open and close characters are also operators, they won't mark comments. I guess the only workaround for now is to use the External Lexer plugin. You can find more info here: http://sourceforge.net/forum/message.php?msg_id=4706653

      BTW, this could probably be fixed easily just by looking for comment sequences before anything else. Is there a way this can fixed directly inside notepad++ user language definition?

       
    • Nobody/Anonymous

      Why edit a default xml if you way you want to write your own?

      Use the User Define Language Dialog.