Changes

Jump to navigation Jump to search
50 bytes added ,  14:47, 30 June 2020
reversed the search treatment as pattern/plain for default
The ConTeXt source browser at [http://source.contextgarden.net http://source.contextgarden.net] has recently been replaced by a Lua implementation that uses Hans Hagen's SciTE lexers for syntax highlighting and a search index that is built up using a Lua script.
''Note:'' for some of the really large files (for example <code>char-def.lua</code>), syntax highlighting is disabled, and <code>context-en.xml</code> is skipped completely.
= Browsing the installed files =
''Note:'' At the moment, you cannot do AND/OR searches or search for multiple words at the same time.
 
The search field uses Lua patterns by default.
 
Quick start: Lua patterns have roughly the same list of special characters as simple regular expressions, but they use the <code>%</code> character for escaping those. See the [https://www.lua.org/manual/5.3/manual.html#6.4.1 Patterns section] of the Lua manual for details.
There are four option checkboxes below the search input. Each of these are optional, with irrelevant values. The script only looks at the existence of the option, it never checks the actual values except for the value of the <code>search</code> parameter itself.
Modifies the search pattern by anchoring it to the begin and end of the search index keys, as if it was enclosed in <code>^</code>...<code>$</code>
== plain text lua string pattern matches ==
Name: '''ppat'''
Default: '''OFF'''
Treats the input as a lua string pattern instead of plain text instead . Quick start: Lua patterns have roughly the same list of a special characters as simple regular expressions, but they use the <code>%</code> character for escaping those. See the [https://www.lua pattern.org/manual/5.3/manual.html#6.4.1 Patterns section] of the Lua manual for details. 
= Highlighting of search terms =
<nowiki>{{src|context.mkiv?search{{=}}lang-}}</nowiki>
<nowiki>{{src|context.mkiv?search{{=}}lang-&ppat{{=}}1}}</nowiki>
<nowiki>{{src|context.mkiv#l107}}</nowiki>
{{src|context.mkiv?search{{=}}lang-}}
{{src|context.mkiv?search{{=}}lang-&ppat{{=}}1}}
{{src|context.mkiv#l107}}
''Note that you have to write the equals sign as <nowiki>{{=}}</nowiki>inside wiki templates.''
= A note about the search index =

Navigation menu