Community

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

    Making categories for Lua scripts

    Help wanted · · · – – – · · ·
    categorize lua comment block
    2
    2
    1388
    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.
    • Vile Mushroom
      Vile Mushroom last edited by

      I have a very large script file with many functions inside of it and it would be a really huge help if I could categorize things by being able to collapse them without turning the code into comments. For example:

      –[[Initial Functions–[[
      blah blah blah
      functions here and there
      stuff scripty things
      ]]–Initial Functions]]–

      I could collapse that and it would say “–[[Initial Functions–[[” on the collapsed section which is exactly what I need but all the code inside of it is commented. Is there a way to make collapsible sections without commenting all the code?

      Thanks!

      Claudia Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        Claudia Frank @Vile Mushroom last edited by

        @Vile-Mushroom

        means you need to write your own lua lexer as a plugin
        and define some special comment as a folding point.
        Npp and scintilla can/should, from my point of view, only support the
        standard language syntax.

        Cheers
        Claudia

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