• Login
Community
  • Login

Line breaks possible in Custom Defined Language?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 1 Posters 6.9k Views
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.
  • C
    Christian Rekrats
    last edited by Christian Rekrats Jul 21, 2015, 7:31 AM Jul 21, 2015, 7:30 AM

    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
    • C
      Christian Rekrats
      last edited by Jul 21, 2015, 12:11 PM

      I think I’ve found it…

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

      See Example 2 and 4.

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors