Home Download Buy Blog Forum Support

Why no syntax hilighting for JSP?

Why no syntax hilighting for JSP?

Postby mrdctaylor on Fri Oct 16, 2009 1:39 pm

I just saw this editor featured on Lifehacker so I immediately downloaded/installed it. So far, I *REALLY* like the look of it. However, there is one deal breaker for me--unless I've just missed it. I do not see any built-in syntax hilighting for JSPs. Is it downloadable for somewhere? Surely I'm not the only one who needs this. Am I missing something?

Thanks!
mrdctaylor
 
Posts: 14
Joined: Fri Oct 16, 2009 1:37 pm

Re: Why no syntax hilighting for JSP?

Postby mrdctaylor on Fri Oct 16, 2009 2:06 pm

Yes, JSP is JavaServer pages. I'll give that a try--I'm just shocked that something as commonplace (at least in my world) isn't included. I love the look of Sublime though!
mrdctaylor
 
Posts: 14
Joined: Fri Oct 16, 2009 1:37 pm

Re: Why no syntax hilighting for JSP?

Postby mrdctaylor on Fri Oct 16, 2009 2:11 pm

Well, I downloaded that file and did what you said. When I opened a JSP file it recognized it as such, but the syntax highlighting was basically non-existent. It recognized/highlighted some javascript and some tags but didn't highlight any of the Java code within the JSP like my other text editor (TextPad) does. :-(

So, no dice.
mrdctaylor
 
Posts: 14
Joined: Fri Oct 16, 2009 1:37 pm

Re: Why no syntax hilighting for JSP?

Postby mrdctaylor on Fri Oct 16, 2009 2:23 pm

Ok. I'm a little confused. As installed, it comes with Java. Are you saying I need to replace something that was installed with this other bundle? I just added the JSP thing and it didn't highlight syntax although it DID recognize it as a JSP file.

Oh and since it is contained in Java, would the JSP directory you had me create before just go away and now be included in this new Java bundle?
mrdctaylor
 
Posts: 14
Joined: Fri Oct 16, 2009 1:37 pm

Re: Why no syntax hilighting for JSP?

Postby mrdctaylor on Fri Oct 16, 2009 2:35 pm

Ok. I deleted the JSP directory and put that file under the Java directory (it was not already there). When I opened my JSP file it looked just like it had before. It seemed to recognize/highlight a little Javascript code at the top of the file but in no way highlighted any of the Java/HTML code that makes up the bulk of a JSP page. It may just be that Textmate doesn't have good support for JSP. That's unfortunate, because I REALLY like the looks of this editor. But I just can't live without the nice syntax highlighting of TextPad. :(

Thanks for all of your help.
mrdctaylor
 
Posts: 14
Joined: Fri Oct 16, 2009 1:37 pm

Re: Why no syntax hilighting for JSP?

Postby mrdctaylor on Fri Oct 16, 2009 2:53 pm

Yeah, that's what I'm seeing too.
mrdctaylor
 
Posts: 14
Joined: Fri Oct 16, 2009 1:37 pm

Re: Why no syntax hilighting for JSP?

Postby jps on Fri Oct 16, 2009 3:17 pm

I'll take a look at this in preparation for the next beta - I agree, JSP files should just work right out of the box.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Why no syntax hilighting for JSP?

Postby mrdctaylor on Fri Oct 16, 2009 3:30 pm

Awesome. Another note of interest for Java/JSP programmers. It is possible to configure this application to work with curley braces ({ }) or parenthesis just like it does with square braces? I.e. being able to use CTRL-M, etc. to show blocks of code?
mrdctaylor
 
Posts: 14
Joined: Fri Oct 16, 2009 1:37 pm

Re: Why no syntax hilighting for JSP?

Postby mrdctaylor on Fri Oct 16, 2009 3:33 pm

Nevermind--I see that it can be done. I found a forum post on it. However, it seems like this should be default behavior.
mrdctaylor
 
Posts: 14
Joined: Fri Oct 16, 2009 1:37 pm

Re: Why no syntax hilighting for JSP?

Postby EJ12N on Fri Oct 16, 2009 3:35 pm

mrdctaylor wrote:Awesome. Another note of interest for Java/JSP programmers. It is possible to configure this application to work with curley braces ({ }) or parenthesis just like it does with square braces? I.e. being able to use CTRL-M, etc. to show blocks of code?

does that already... in default file preference u got...
Code: Select all
# Set to false to not highlight curly brackets. This only takes effect if
# matchBrackets is true
matchBracketsBraces false


so just goto preferences > user file preferences and put that option to true...
Code: Select all
matchBracketsBraces true


btw matchBrackets by default is true...so no need to set that.
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Next

Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 4 guests