Syntax highlighting not working for jsp files

Syntax highlighting, code folding, brace matching, code indenting, and function list

Syntax highlighting not working for jsp files

Postby lolo » Thu Dec 30, 2004 3:22 pm

I've been reading alot of the posts here and it seems that what I'm doing SHOULD be working but it's not.

I wanted to add syntax highlighting for jsp files and first I added my own /L10 item to the wordfile.txt file from the instructions in the help file and that didn't work. Then on the forum I discovered that you could get existing wordfiles for all sorts of files and I went to the link and copied the text for the jsp wordfile and pasted it at the end of the wordfile document in my ultraedit folder. But it's still not working...almost everything between the scriptlet brackets("<%" and "%>")is the color of a comment, despite the fact that there are all sorts of "/C" items for things from scriptlets to reserved words to classes. And the other "/C" type items aren't displaying as they should either. I've tried restarting UltraEdit and even restarting my pc, but no luck.

What am I doing wrong??
User avatar
lolo
Newbie
 
Posts: 2
Joined: Thu Dec 30, 2004 12:00 am

Re: Syntax highlighting not working for jsp files

Postby Mofi » Sat Jan 01, 2005 6:11 am

In standard Wordfile.txt, language 3 /L3"HTML" is already assigned to JSP. Remove JSP from the definition line of language 3 and try again.

Users can see which language definition is used for highlighting for the current file by open menu View - View As (Highlighting File Type). So take a look there.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Syntax highlighting not working for jsp files

Postby lolo » Sat Jan 01, 2005 6:54 am

Thank you so so much!! That worked and now I know how I can see which syntax highlighting is being used. Happy New Year from a grateful newbie!
User avatar
lolo
Newbie
 
Posts: 2
Joined: Thu Dec 30, 2004 12:00 am

Re: Syntax highlighting not working for jsp files

Postby kennith » Wed Feb 13, 2008 7:48 pm

I am having a problem to get JSP highlight.

My jsp syntax does not get highlighted if it's inside the <% and %>.
Therefore:
<%
class foo() {
}
%>

does not get highlighted, but

<% %>
class foo() {
}

is highlighted. It is strange. Does anyone have this problem?
User avatar
kennith
Newbie
 
Posts: 1
Joined: Wed Feb 13, 2008 12:00 am


Return to Syntax Highlighting

cron