Line breaks possible in Custom Defined Language?

  • Hi all,

    first of all I’d like to say that I really like npp. In my opinion it’s the best editor available.

    And now… my problem :D
    I’m working with a language called DMIS. After 80 characters normally a line break is entered which actually ‘breaks’ my syntax highlighting because I also made syntax highlighting for quotes (‘random text’).
    Is it possible to get npp notice this?

    $$TEXT/OUTFIL,‘Just some random text just some random text just some rand$
    Just some random text Just some random text Just some random text Just so$
    Just some random text’

    ‘$$’ at the start of the line indicates that it is a comment (that works fine in syntax highlighting).
    the single $ at the end of the line indicates the line break.
    Because of the single quote (’) in the 3rd line the rest of the program is coloured because the quote is not complete afterwards.
    I’d really like to keep the colour for the quoted text but at some programs (where line breaks are inside) it’s really annoying to manually delete the line breaks.

    Thanks for your help.

  • I think I’ve found it…

    See Example 2 and 4.

Log in to reply