Last modified: 2012-05-09 16:15:54 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 T38630, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36630 - Special characters <> are shown as &lt;&gt;
Special characters <> are shown as &lt;&gt;
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
SyntaxHighlight (GeSHi) (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-08 09:03 UTC by Peter Roulund
Modified: 2012-05-09 16:15 UTC (History)
2 users (show)

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


Attachments
Code typed and result with the error shown (82.75 KB, image/jpeg)
2012-05-08 09:05 UTC, Peter Roulund
Details

Description Peter Roulund 2012-05-08 09:03:50 UTC
The character < and > are shown as &lt;&gt; when the sql language is choosen.

example: - also see the attachment

<syntaxhighlight lang="sql">
select * from costumer
where (id > 200 or id < 800)
and id <> 250
</syntaxhighlight>
Comment 1 Peter Roulund 2012-05-08 09:05:06 UTC
Created attachment 10547 [details]
Code typed and result with the error shown
Comment 2 Mark A. Hershberger 2012-05-08 16:16:25 UTC
https://www.mediawiki.org/wiki/User:MarkAHershberger/Bug36630

WFM on mediawiki.org and my own wiki.  Maybe there is a conflict with some other extension?
Comment 3 Peter Roulund 2012-05-09 07:56:03 UTC
== Using template parameters in tag.  ==
Root couse found - 

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 courses the problem descripted and shown in attachement.

Is there a better way to enable the use of SyntaxHighlight in a wiki-template?
Comment 4 Mark A. Hershberger 2012-05-09 16:15:54 UTC
(In reply to comment #3)
> Is there a better way to enable the use of SyntaxHighlight in a wiki-template?

Could you file a new bug requesting this?  I'm closing this one since the original issue is invalid.

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


Navigation
Links