summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2005-12-05 17:58:07 +0000
committermurphy <murphy@rubychan.de>2005-12-05 17:58:07 +0000
commit300032def4f1f4fe2227612c5c045cb72225546f (patch)
treedd5c20fc1781e6a21feb6d55da2f4991a66c335c
parentc0cda3eed3c2593500cf6667f01eef6064a6670a (diff)
downloadcoderay-300032def4f1f4fe2227612c5c045cb72225546f.tar.gz
New IDEAs.
-rw-r--r--IDEA30
1 files changed, 30 insertions, 0 deletions
diff --git a/IDEA b/IDEA
new file mode 100644
index 0000000..52cdbd6
--- /dev/null
+++ b/IDEA
@@ -0,0 +1,30 @@
+Website tools:
+- convertor: reads and writes HTML (filter)
+ <code lang="ruby">bla</code>
+ =>
+ <code class="CodeRay">...</code>
+
+- manual highlighter:
+ 1. idea:
+ special scanner (simply reading raydebug code should be enough)
+ => makes it possible, easy to write
+
+ 2. idea:
+ => cooler, but more advanced
+ => still easy to implement for all scanners at once
+ preamble function (wrapper for scanners):
+ for example, a method def:
+ def foo
+ shall be shown in the same color as method(foo), but
+ without the def. so write:
+ !def !foo
+ Input is read into def foo and 4 (number of chars in preamble)
+ Ruby scanner outputs some Tokens:
+ reserved(def) method(foo)
+ and chopped by a chop_preamble method giving:
+ method(foo)
+ PreambleTokens subclass?
+ Tokens instance that takes options?
+
+ 3. idea:
+ Scanner handled solution --> forget it.