Not signed in (Sign In)

Categories

Vanilla 1.1.1 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorDarthnader
    • CommentTimeFeb 26th 2007
     permalink

    The following:

    <script type="text/javascript"><!-- //--></script>
    causes the highlighting on everything that comes after the </script> tag to be messed up.

    I realize that this is probably not an Intype issue but an issue with the xhtml bundle.
    But if anyone has come across this already and has a fix I’d appreciate it if you could let me know.

    •  
      CommentAuthortstrokes
    • CommentTimeFeb 26th 2007
     permalink

    I would download idyllrains xhtml/html bundle.

    • CommentAuthori
    • CommentTimeFeb 26th 2007 edited
     permalink

    Err, I haven’t worked on the grammar yet. Anyway, here’s the fix (its been merged into the bundle and repository, so you can just download that instead of manually adding in the lines… :P ):

    Replace lines 70- 73 in xhtml.itGrammar with the following:

    patterns: [ { match : /\/\/.*?((?=<\/script)|$\n?)/ name : 'comment.line.double-slash.js' } { begin : /\/\*/ end : /\*\/|(?=<\/script)/ name : 'comment.block.js' } { include : 'source.js' } ]

    •  
      CommentAuthorDarthnader
    • CommentTimeFeb 27th 2007
     permalink

    Thanks dudes. Exactly what I was looking for.