Topic on Extension talk:SyntaxHighlight/Flow

Formatting within <syntaxhighlight>

2
Tom.Reding (talkcontribs)

Is it possible to format text within syntaxhighlight? I would like to keep this italicization of "parameter1", while syntaxhighlighting "Template name":

{{Template name|parameter1}}

  ~ Tom.Reding (talk )  11:31, 28 July 2024 (UTC)

Tacsipacsi (talkcontribs)

I don’t think so. The purpose of syntax highlighting is that it highlights syntax rather than interpreting it. How would it know what to highlight ({{) and what to interpret ('')?

By the way, if the template is really that simple (just a template name and one or a few parameters), IMHO syntax highlighting is unnecessary: it makes the code block stand out too much (color really stands out) without helping much understanding it.

Reply to "Formatting within <syntaxhighlight>"