Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15433

Only display the first N number of lines by default and have a parameter to specify how many to display

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 9.11
    • None
    • Unknown

    Description

      When using the code macro with large code content, it would be nice to display only first N number of lines and let the user click on "View more" at the bottom of the code display to unfold more.

      IMO this should even be the default and we should limit by default at something like 50 lines of code max, and introduce a "lines" parameter to specify how many lines to display.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: