nint22 / corebasic2

Automatically exported from code.google.com/p/corebasic
0 stars 0 forks source link

iOS: Need text highlighting #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Todo

Original issue reported on code.google.com by nin...@gmail.com on 4 Feb 2012 at 9:06

GoogleCodeExporter commented 9 years ago
This should be a part of the language core itself. Turn spaces (i.e. token 
delimiters) into 128 + color index characters. This way we turn the following 
string into a syntax-marked string:

variable = sample_function(3, "Hello, World!", derp)
variable[black]=[gray]([black]3[black],"Hello, World!"[black] etc...

Where [black] is the byte 128 + the color offset:

128 = [black]
129 = [pink]
130 = [green]
131 = [red]
etc..

Note: this function should only take linear time

Original comment by nin...@gmail.com on 10 Feb 2012 at 11:31

GoogleCodeExporter commented 9 years ago
Done

Original comment by nin...@gmail.com on 11 Feb 2012 at 10:56