Custom language delimiters?

Custom language delimiters?

6
NewbieNewbie
6

    Aug 17, 2006#1

    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

    6,675585
    Grand MasterGrand Master
    6,675585

      Aug 19, 2006#2

      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.
      Best regards from an UC/UE/UES for Windows user from Austria

      6
      NewbieNewbie
      6

        Aug 22, 2006#3

        Thanks :)