Menu

CSS highlighting in <style> tags

2009-08-20
2012-11-13
  • 2called-chaos

    2called-chaos - 2009-08-20

    Could you add CSS syntax highlighting in <style> tags?
    In <script> tags it already highlight javascript...

    Regards

    Chaos

     
    • Leon Sorokin

      Leon Sorokin - 2009-08-24

      i think Scintilla is an 8 bit lexer. meaning each character can be one of 128 styles and the parsers cannot be nested or combined. so even the HTML multihighligher is limited to 128 style defs in a single doc...i'm not sure how many are currently exhausted but it's probably very close since it needs to highlight a ton of nested languages like js, css, php. once again, having never looked at the source i think thats the issue....i remember inquiring about the same thing some time ago on some forum.

      Leon

       
      • Jocelyn Legault

        Jocelyn Legault - 2009-08-27

        I have fixed a bug related to a similar problem recently and indeed, you only have 127 different styles you can have in a single document.  Changing that would be feasible, but totally non-trivial.
        You better address your request to the Scintilla developers, as they might get to it sooner than the N++ ones (and it's clearly more in their alley):
        http://groups.google.com/group/scintilla-interest

         
MongoDB Logo MongoDB