Custom language delimiters?

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

Custom language delimiters?

Postby jtrelfa » Thu Aug 17, 2006 2:04 pm

I'm working in a special environment that uses ASP/VBScript-ish syntax to go between HTML and the server side environment (Server Side JavaScript). There are several possible ways to escape into and out of the server-side code. Examples:
<% %>
or
${variable name}

I was thinking of creating a custom wordfile for just this type of project, but how do I tell Uedit (UES, actually) that those delimiters are actually for Javascript?

Thanks,

Jon
User avatar
jtrelfa
Newbie
 
Posts: 6
Joined: Wed Aug 16, 2006 11:00 pm

Re: Custom language delimiters?

Postby Mofi » Sat Aug 19, 2006 11:10 am

First read Syntax highlighting between different languages carefully.

<% tells UE/UES that an ASP_LANG code block is starting at NEXT LINE.
%> tells UE/UES that an ASP_LANG code block is ending at this line.

Well, if you insert JavaScript code instead of VBScript code with <% %> into your HTML file, you can delete ASP_LANG from /L10"VBScript Active Server Pages" and replace JSCRIPT_LANG with ASP_LANG at /L9"JavaScript" in the wordfile for your project.

See also Syntax highlighting on inline ASP.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4051
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Custom language delimiters?

Postby jtrelfa » Mon Aug 21, 2006 8:38 pm

Thanks :)
User avatar
jtrelfa
Newbie
 
Posts: 6
Joined: Wed Aug 16, 2006 11:00 pm


Return to Syntax Highlighting