• Login
Community
  • Login

Can I modify the existing Fortran (fixed form) style to improve the folding?

Scheduled Pinned Locked Moved General Discussion
foldingfortranudl
3 Posts 2 Posters 1.7k 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.
  • T
    Tamer Yanni
    last edited by Sep 6, 2018, 5:44 PM

    I apologize if this is a silly question, first time posting.

    In this demo code, the folding on the left side is not what I expected. I need to be able to fold every subroutine separately.
    Stock Fortran fixed form

    I created a demo UDL that looks like this:
    My UDL

    And that seemed to work as shown:
    Using my UDL

    Now, can I add this modification to the existing Fortran (fixed form)?

    1 Reply Last reply Reply Quote 0
    • P
      PeterJones
      last edited by Sep 6, 2018, 5:51 PM

      Unfortunately, there can be only one lexer in play – either the builtin Fortran (fixed form) will be active, or your UDL will be active.

      Options

      1. live with the limitations of the builtin lexer
      2. live with the limitations of the UDL (and make it more complete)
      3. write your own lexer plugin (or pay someone to do it)
      4. try out @Claudia-Frank’s PythonScript-based lexers (search the forums) that you might be able to customize to get what you want.
      5. submit a bug report – I am not sure whether the builtin lexers are proprietary to scintilla, or just to NPP; if Scintilla, it would have to be thru their issues tracker (and then NPP would have to update it’s scintilla to match); if NPP, it would have to be thru the NPP issues tracker (see the FAQ )
      1 Reply Last reply Reply Quote 2
      • T
        Tamer Yanni
        last edited by Sep 7, 2018, 1:12 AM

        Thanks Peter, I had a feeling this was the case but wanted to get an expert opinion. I wish there was a way to copy the builtin lexer to a UDL then make modifications to it.

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