mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
more documentation spellchecking,
in documentation: @<tag>@ now highlights as a tag git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1279 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -98,6 +98,8 @@ $built_in_functions = array(
|
||||
function syntax_highlight($code) {
|
||||
if (preg_match("@^(\s*#.*\n)*\s*[-a-zA-Z0-9 _/,]+:([^=]|$)@", $code)) {
|
||||
return highlight_reader($code);
|
||||
} else if (preg_match("@^<[^&>]*?(>|>)$@", $code)) {
|
||||
return "<span class='hl-tag'>$code</span>";
|
||||
} else {
|
||||
return highlight_script($code);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user