Modifying styles

Anonymous
2010-07-30
2012-11-14

  • Anonymous
    2010-07-30

    I'm not particularly keep on the way Notepad++ defaults JavaScript syntax.  I'd like to update it significantly to suit me better and I thought using a UDL would be the best option.  However, I can't figure out how to emulate certain syntax highlighting behaviors that the default JavaScript syntax highlighter catches and that makes it difficult to create a good alternate UDL.  How do I:

    1) Recognize regular expressions of the form /regex/flags
    2) Properly recognize comment lines and comment blocks (for some reason, setting comment line to // and comment block to /* */ aren't working)

    I have to imagine these are not significant issues and I'm just missing the obvious.  Though, it would be much easier to do this if all the languages were treated equally (internally supported vs. UDL makes it hard to look at how other languages are managed)