Topic on Extension talk:SyntaxHighlight

Is it possible to create links inside <syntaxhighlight ></syntaxhighlight > tags?

3
194.44.177.25 (talkcontribs)

Sometimes I need to create internal links from inside the <syntaxhighlight ></syntaxhighlight > tags. Is it possible and, if yes, than how can it be done?

Shirayuki (talkcontribs)
Want (talkcontribs)

Yes. Solution exists. I use it on my help page for example code, but in wiki must be installed Extension:Variables.

  1. First I set {{#vardefine:temp|10 000,-}} value of the variable
  2. Next use for view exemple code {{#tag:syntaxhighlight|{{#var:temp}}|lang=haskell}}
  3. And finally I use {{#var:temp}} for the interpretation
Reply to "Is it possible to create links inside <syntaxhighlight ></syntaxhighlight > tags?"