Community
    • Login

    Folging in custom Language

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    folging
    2 Posts 2 Posters 2.5k 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.
    • Konstantin BojarovK
      Konstantin Bojarov
      last edited by

      I create custom Language for read specify file.

      I need add Folding. In my Language (K-file for LS-DYNA) exist open keyword, but don’exist close keywird. For example, part of File:

      […]
      *NODE
      1-2.300000000E-02 1.000000000E-03 0.000000000E+00 0 0
      2-2.300000000E-02 1.000000000E-03 2.300000000E-02 0 0
      3-2.300000000E-02 1.000000000E-03 5.897435897E-04 0 0
      [over 9000 lines]
      10032-2.240337932E-02 3.333333333E-04 1.179455726E-03 0 0
      10033-2.240450559E-02 6.666666667E-04 5.896325645E-04 0 0
      10034-2.240450559E-02 3.333333333E-04 5.896247027E-04 0 0
      $
      $
      $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
      $ SECTION DEFINITIONS $
      $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
      $
      *SECTION_SHELL
      1 10 0.8333 5.0 0.0 0.0 0
      0.100E-03 0.100E-03 0.100E-03 0.100E-03 0.00
      *SECTION_SOLID
      2 1
      […]

      $ is Comment.

      I need folding 9000 lines after *NODE. If I type $ as Connent, Folding is not working.

      P.S. Sorry for bad English

      1 Reply Last reply Reply Quote 0
      • Jim DaileyJ
        Jim Dailey
        last edited by

        I am not sure what you need, but I’ll offer atip that might help.

        I think you might want to be able to fold *<section> up to some following section? You say there is no closing keyword and that “$” begins a comment. If that is all correct, then perhaps you can create a closing keyword like this:

        [...]
        *NODE
        1-2.300000000E-02 1.000000000E-03 0.000000000E+00 0 0
        ...
        10034-2.240450559E-02 3.333333333E-04 5.896247027E-04 0 0
        $SECTION_END
        $
        $
        $ SECTION DEFINITIONS $
        $
        ...
        

        Here, I am using the comment “$SECTION_END” as an end-of-folding keyword. Maybe this will work for you?

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