aboutsummaryrefslogtreecommitdiff
path: root/html/elispmarkup.php3
diff options
context:
space:
mode:
authorDavid Aspinall2000-03-23 13:12:31 +0000
committerDavid Aspinall2000-03-23 13:12:31 +0000
commit22d15063067e13757d96ac735c06e93b675c4544 (patch)
tree68ee101f6ee6597daba13c83f50097cf03f61b54 /html/elispmarkup.php3
parent7e3bbc02bea433c91cb01556eb7bbb0ab84c15bd (diff)
Remove attempts at elisp markup, screwy regexps somewhere or php buggy.
Diffstat (limited to 'html/elispmarkup.php3')
-rw-r--r--html/elispmarkup.php315
1 files changed, 8 insertions, 7 deletions
diff --git a/html/elispmarkup.php3 b/html/elispmarkup.php3
index a18586c9..3a8528f4 100644
--- a/html/elispmarkup.php3
+++ b/html/elispmarkup.php3
@@ -117,15 +117,16 @@ function elisp_markup($filename,$thispage,$title="") {
// Anchors for URLs
$line = ereg_replace("((http://|mailto:)[-a-zA-Z0-9\.~/_@]+)","<a href=\"\\1\">\\1</a>",$line);
// Font-lock equivalents...
- // 1. comments
- $line = ereg_replace("(;+.*\n)",
- "<div style=\"color: #8080E0\">\\1</div>",
- $line);
+ // 1. comments. Strings roughly done: ignore if quote appears after ;
+// seems buggy.
+// $line = ereg_replace("^([^;]*)(\;+[^\"]+)$",
+// "\\1<div style=\"color: #8080E0\">\\2</div>",
+// $line);
// 2. keywords
// FIXME: this inserts CR's.
- $line = ereg_replace("^\(def(macro|un|var|custom|const|group)",
- "(<div style=\"color: #C0B0B0\">def\\1</div>",
- $line);
+// $line = ereg_replace("^\(def(macro|un|var|custom|const|group)",
+// "(<div style=\"color: #C0B0B0\">def\\1</div>",
+// $line);
// FIXME: add hrefs for keywords, looking up in TAGS file.
// FIXME: add line numbers
// FIXME: parse strings