MediaWiki search in <syntaxhighlight> tag (SyntaxHighlight GeSHi extension)

156 Views Asked by At

How to enable searching in <syntaxhighlight> tag (SyntaxHighlight GeSHi extension)? I'm trying to search for com.android.chrome in it, but no result found :-(. String is IMHO long enough to be found.

<syntaxhighlight lang="java">
supproclist.add("com.whatsapp");
supproclist.add("com.android.chrome");
</syntaxhighlight>
1

There are 1 best solutions below

0
Sam Wilson On

You don't need to do anything special; everything within <syntaxhighlight> tags is already included in the normal site-wide search system (based on MySQL search).

Edit: You definitely should be getting a match on com.android.chrome. Is this on a public wiki? Can you provide a link?

You won't get a result when searching for com.android however, because the search system only finds whole words, and the dot is considered part of the word. This is quite separate from, and not changed by, the SyntaxHightlight extension.