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

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 9.11
    • Fix Version/s: None
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Date of First Response: