Community

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

    UDL for fortune

    Help wanted · · · – – – · · ·
    udl fortune
    2
    3
    95
    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.
    • Alessandro-Barbieri 0
      Alessandro-Barbieri 0 last edited by Alessandro-Barbieri 0

      I’m trying to define a custom language for fortune
      The language is super simple:

      %
      Lorem ipsum dolor sit amet, consectetur adipisci elit, sed do eiusmod tempor incidunt ut labore et dolore magna aliqua.
      Ut enim ad minim veniam, quis nostrum exercitationem ullamco laboriosam, nisi ut aliquid ex ea commodi consequatur.
      Duis aute irure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
      Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
      %
      fortune 2
      %
      fortune 3
      %
      

      I tried using the character % as opener and closer but when collapsing, it will collapse all until the end of the file.

      1 Reply Last reply Reply Quote 0
      • PeterJones
        PeterJones last edited by PeterJones

        The language is super simple:

        It might be a super-simple language; however, the UDL folding was set up to require two different sequences as the start and stop for folding. There is no easy way that I know of to accomplish what you want.

        (It might be doable using one of the scripting plugins, but editing folding via scripting goes beyond my skillset.)

        Alessandro-Barbieri 0 1 Reply Last reply Reply Quote 2
        • Alessandro-Barbieri 0
          Alessandro-Barbieri 0 @PeterJones last edited by

          @PeterJones Thanks for the clarification!

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