Topic on Extension talk:SyntaxHighlight

Feature request: add title/external file/collapse

1
Sjoerd72 (talkcontribs)

Hi,

I have not found a way to feed the syntaxhighlighter with a previous uploaded file (eg a shell or python script). I really would like to have this feature implemented and while we are at it, wouldn't it be nice to add a title (eg filename) also and a collapse mechanisme to show only the first n-th lines

Bit like this:

<syntaxhighlight lang="shell" file="my_bash_script.sh" title="My Bash Script" collapse="5" />

This would render the file my_bash_script.sh were only the 1st 5 lines are visible with a title (heading nth style) "My Bash Script".

Any thoughts?

Reply to "Feature request: add title/external file/collapse"