From 44dae663183eb3a0fac9c4064f6cc378e7f6aaa9 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Fri, 11 Feb 2011 13:43:42 +0100 Subject: [PATCH] add syntax rule for php comments --- editor.html | 274 ---------------------------- lib/ace/mode/php_highlight_rules.js | 4 + 2 files changed, 4 insertions(+), 274 deletions(-) delete mode 100644 editor.html diff --git a/editor.html b/editor.html deleted file mode 100644 index d4557f3b..00000000 --- a/editor.html +++ /dev/null @@ -1,274 +0,0 @@ - - - - - - Editor - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/lib/ace/mode/php_highlight_rules.js b/lib/ace/mode/php_highlight_rules.js index 0b4b4b48..374ad92e 100644 --- a/lib/ace/mode/php_highlight_rules.js +++ b/lib/ace/mode/php_highlight_rules.js @@ -472,6 +472,10 @@ PhpHighlightRules = function() { token : "comment", regex : "\\/\\/.*$" }, + { + token : "comment", + regex : "#.*$" + }, docComment.getStartRule("doc-start"), { token : "comment", // multi line comment