adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.26k stars 7.63k forks source link

jsp syntax highlighting #12722

Open abhijith-gururaj opened 8 years ago

abhijith-gururaj commented 8 years ago

There is a bug in highlighting the JSP code in the HTML file. The syntax highlighting breaks after a relational operator has encountered. Check out the screenshot below.

screenshot 10

As you can see , the highlighting breaks after the relational operator in the first if statement.

ficristo commented 8 years ago

The problem is that jsp is recognized as html. IMO the right way to fix this is to create an extension that add JSP as a language. CodeMirror supports it, see https://codemirror.net/mode/htmlembedded/index.html