New User Defined Language - UDL 2.0 - HTML

Kaosar
2013-01-02
2013-01-03
  • Kaosar

    Kaosar - 2013-01-02

    Hi,

    I am trying to create a UDL for a hybrid HTML language that incorporate HTML with addition of system specific tags.

    The problem I am having is firstly to define the correct UDL for the specific tags as well as including the HTML UDL that I borrowed from the default HTML language within Notepad++.

    The tag starts like this : <ay:If id="495" name="Filter Name" >

    The tag ends like this: </ay:If id="495">

    NOTE: I also need to incorporate a range for the ID as the range is between 1-1000 (the code above has ID 495), so the UDL picks up different ID and colour code them with the ability to check if the tag is correctly closed.

    If you can provide some assistance that would be great.

    Kind Regards
    Kaosar

     
    Last edit: Kaosar 2013-01-02
  • Loreia2

    Loreia2 - 2013-01-03

    HI Kaosar,

    UDL is not well suited for HTML as it cannot match correct tags.
    HTML (and its cousins) really need a dedicated Lexer.

    BR,
    Loreia

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks