Extension talk:SyntaxHighlight/de

From mediawiki.org

Linebreaks after N characters[edit]

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!

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

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:

As you can see: There is no "pre"-box. Is there a Solution? Roemer2201 23:37, 12 August 2011 (UTC)Reply

pre-box in the printable version[edit]

If I open the printable version of a page where I used the geshi-systax tag the border around the code is not there. Is there some easy fix? Roemer2201 (talk) 12:45, 10 June 2013 (UTC)Reply

Git clone does not work properly[edit]

Hi, when I call (in VirtualBox) git clone https://... then I get an error: RPC failed; result=22, HTTP code = 405. Only a second call of git clone https://... then installs the extension. --Sigbert (talk) 05:20, 7 December 2013 (UTC)Reply

How can we integrate the extension "Linktitles"?

Welche Möglichkeit gibt es den _GeSHi dazu zu bringen

[[Linktitel]]

aufzulösen um Interne Links in den Kommentaren anklicken zu können.

Ich wĂŒrde den php Code auch selbst schreiben, finde aber die Stelle nicht, wo ich den Code einklinken kann. Danke fĂŒr Eure Hilfe!!

Installation[edit]

I run my MediaWiki installation with XAMPP on a Windows machine. I also installed Python 3 on my machine but not in the XAMPP folder. Do I really need to reinstall Python 3 for this extension? Has somebody already done that? --Paintdog (talk) 23:03, 30 July 2018 (UTC)Reply

Issues after MediaWiki 1.35 upgrade[edit]

I get hundreds of entries in Category:Pages_with_syntax_highlighting_errors and Category:Pages_using_deprecated_source_tags

I tried to find information on both of these but couldn't find any documentation. I am very unhappy with the intended deprecation of the <source> tag. What is the motivation for this. I am very unahppy with the way syntax higlighting errors are handled - i assume the call of pygmentize might fail. I tried:

var/www/mediawiki/code/extensions/SyntaxHighlight_GeSHi/pygments$ ./pygmentize -V
Pygments version 2.5.2, (c) 2006-2019 by Georg Brandl.

So my pygmentize is executable and shows it's version Let's try syntax highligting right here:

def quick_sort(arr):
	less = []
	pivot_list = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass