Sha256: 40bc6c18489b561271c23c993ab890eeb514a7f162ab0ab993df0d7566ccaadd

Contents?: true

Size: 888 Bytes

Versions: 5

Compression:

Stored size: 888 Bytes

Contents

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.

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
raldred-coderay-0.9.0 IDEA
raldred-coderay-0.9.339 IDEA
raldred-coderay-0.9.3391 IDEA
raldred-coderay-0.9.3431 IDEA
raldred-coderay-0.9.3551 IDEA