Template talk:Syntaxhighlight

wiki code
sample
 * suggest using simple space heading delimiter as syntax delimiter for frameing the sentence/group of sentences intead using a hidden ending out.


 * To do it now | should input wiki language or nowiki language contender, but it doesn`t work

188.25.109.59 (talk) 22:29, 16 March 2011 (UTC)

line numbering and highlight
I was thinking that line numbering and highlight might be useful, but it is seriously broken under MW 1.18. The examples at mw:Extension:SyntaxHighlight GeSHi look good, but they are running 1.19. ---— Gadget850 (Ed)  talk 16:47, 18 February 2012 (UTC)
 * 1.19 is just around the corner. Let's test it here:
 * Looks OK to me, but the left padding may need some tweaking, or numbers > 999 may break out. — Edokter  ( talk ) — 17:28, 18 February 2012 (UTC)
 * I do have trouble making the template respond to, as #tag: does not seem to like embedded parser functions. — Edokter  ( talk ) — 17:50, 18 February 2012 (UTC)


 * That's odd— when I copied the same sample, each line was formatted in a separate dashed box. Works now. ---— Gadget850 (Ed)  talk 22:11, 18 February 2012 (UTC)

Languages
A number of languages were added and the Meta list was not as up to date as I had hoped. I have the code columns updated, but the language columns need a lot of work. This list is helpful in identifying the languages. --— Gadget850 (Ed) talk 19:34, 21 March 2013 (UTC)
 * and the list is now incorrect again, due to the change from geshi to pygments (T85794). John Vandenberg (chat) 03:46, 13 July 2015 (UTC)

Source code wrapping
Hello! Is there a way to make the source code displayed by  not to wrap if it doesn't fit in the avaiable space? More specifically, I'd need the inner  element to have   instead of   which is the default. Is that possible? Any help would be appreciated! &mdash; Dsimic (talk &#124; contribs) 22:04, 6 August 2015 (UTC)
 * There is no parameter, if that's what you're looking for. You can however set some personal CSS to make it nowrap:


 * 22:17, 6 August 2015 (UTC)


 * Actually, I'm trying to solve a layout issue in one of our articles, please have a look at the table on the right. The source code gets wrapped in some browsers with some monospaced fonts, despite the fact that in other browsers it fits comfortably within the specified , so I'd need the formatted code to "stretch" the table instead of wrapping itself.  Is that doable, or is there a better way to do the whole thing?  I've intentionally set the   value too low in the example to simulate the wrapping issue. &mdash; Dsimic (talk &#124; contribs) 22:27, 6 August 2015 (UTC)


 * (And then Chrome rears its ugly head with a current table width bug...) I see. There is no current solution inplace, but I can expand the  class in Common.css to make pre behave in these conditions. That should also eliminate the need to hardcode a width (which is bad).   20:32, 7 August 2015 (UTC)
 * Can't expand  without side effects, so I need to hink about this.   20:38, 7 August 2015 (UTC)


 * Oh, I know very well how painful it is to make something CSS-related work in all major web browsers. Hopefully you'll find a good solution, and I'd love to get rid of the hardcoded   value –  having it in that place is simply wrong, but unfortunately I had no other way to make the whole thing.  Thank you for all your hard work! &mdash; Dsimic (talk &#124; contribs) 21:01, 7 August 2015 (UTC)


 * Any updates on this, please? &mdash; Dsimic (talk &#124; contribs) 15:20, 27 September 2015 (UTC)


 * I think I got it. I can ammend  to include . But, the reason it failed before is because you appied the width to the table cell, and not the table; I fixed that above (either that, or give all cells a width). So, in short: 1) Apply the widht to the table 2) give the cell the   class.   18:26, 27 September 2015 (UTC)


 * Works great. Thank you very much! &mdash; Dsimic (talk &#124; contribs) 18:43, 27 September 2015 (UTC)

How can I display as XML element?
Hello. When I input  in this template, the   element is interpreted as a reference tag. How can I display it as a raw XML element?

In other hand, inside  tag, the   element is interpreted as raw XML element.

--CmplstofB (talk) 13:16, 20 August 2019 (UTC)