Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Line breaks possible in Custom Defined Language?

    Help wanted · · · – – – · · ·
    1
    2
    6147
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Christian Rekrats
      Christian Rekrats last edited by Christian Rekrats

      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?

      Example:
      $$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.

      1 Reply Last reply Reply Quote 0
      • Christian Rekrats
        Christian Rekrats last edited by

        I think I’ve found it…

        http://udl20.weebly.com/delimiters.html

        See Example 2 and 4.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors