Here in this wiki the SyntaxHighlight extension is at work. Usually one uses the <syntaxhighlight> tag to mark those parts which shall be highlighted. Pages like MediaWiki:Gadget-site.css are highlighted. But there I find no <syntaxhighlight> tag in the wiki code. Will this extension hightlight such css pages without the tag as well?
Topic on Extension talk:Highlightjs Integration/Flow
No. This extension only affects code contained within HTML/XML elements (tags) such as syntaxhighlight
. To highlight without tags requires changing the content model of the page, such as with the SyntaxHighlightPages Extension. You can use both SyntaxHighlightPages
and Highlightjs_Integration
at the same time, but they use different highlighting libraries and styles (Pygments vs. HighlightJS). Nicole Sharp (talk) 13:51, 27 March 2021 (UTC)
I would really like to see the HighlightJS library and style options applied to page content models though like with SyntaxHighlightPages. Nicole Sharp (talk) 14:08, 27 March 2021 (UTC)