Last modified: 2014-05-04 19:31:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T38736, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36736 - Add ability to use templates inside syntaxhighlighting
Add ability to use templates inside syntaxhighlighting
Status: RESOLVED DUPLICATE of bug 25547
Product: MediaWiki extensions
Classification: Unclassified
SyntaxHighlight (GeSHi) (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-10 11:36 UTC by Peter Roulund
Modified: 2014-05-04 19:31 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
special characters are shown wrong (82.75 KB, image/jpeg)
2012-05-10 11:37 UTC, Peter Roulund
Details

Description Peter Roulund 2012-05-10 11:36:24 UTC
== Using template parameters in tag.  ==

By default it's impossible to use triple braced parameters inside
sytntaxhighlight tag. To enable this I changed the extension a bit: 

In file SyntaxHighlight_GeSHi.class.php, line 23: 
this line was substituded:
  public static function parserHook( $text, $args = array(), $parser)
with these two lines:
  public static function parserHook( $text, $args = array(), $parser, $frame )
  $text = $parser->recursiveTagParse($text, $frame);

Works pretty need but has the side affect that <> are shown as &gt; and  &lt;

See the attachement.
example:
<syntaxhighlight lang="sql">
select * from costumer
where (id > 200 or id < 800)
and id <> 250
</syntaxhighlight>

Is there a better way to enable the use of SyntaxHighlight in a wiki-template?
Comment 1 Peter Roulund 2012-05-10 11:37:15 UTC
Created attachment 10575 [details]
special characters are shown wrong
Comment 2 Bartosz Dziewoński 2014-05-04 19:31:26 UTC

*** This bug has been marked as a duplicate of bug 25547 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links