Extension talk:SyntaxHighlight GeSHi/de

From MediaWiki.org
Jump to: navigation, search

[edit] Linebreaks after N characters

Is there a way to force SyntaxHighlight to do linebreaks after N characters? I have source-code with very few lines that are very long and it looks ugly with a large horizontal scroll bar. Thank you in advance!

[edit] "Pre"-box for source-tag

Is is possible to enable the "pre"-box for the source-tag? For example: I type this into my MediaWiki:

* im Terminal einfügen und ausführen:
<source lang="bash">
echo "# Eigener Farbcode für die Bash:
PS1='\[\033[0;36m\][\t]\[\033[0;31m\]\u\[\033[0;20m\] @ \[\033[0;37m\]\h\[\033[0;20m\] \[\033[0;32m\]\w $ \[\033[0m\]'
" >> ~/.bashrc && source ~/.bashrc
</source>

On this Wiki here it looks this way (which is the way I want it to):

  • im Terminal einfügen und ausführen:
echo "# Eigener Farbcode für die Bash:
PS1='\[\033[0;36m\][\t]\[\033[0;31m\]\u\[\033[0;20m\] @ \[\033[0;37m\]\h\[\033[0;20m\] \[\033[0;32m\]\w $ \[\033[0m\]'
" >> ~/.bashrc && source ~/.bashrc

But on my wiki it looks like this:
2011-08-13 01h26 59.png
As you can see: There is no "pre"-box. Is there a Solution? Roemer2201 23:37, 12 August 2011 (UTC)

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox