This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
supernicejohn's profile picture

Random text highlighting

Started by supernicejohn, 05 December 2016 - 11:24 AM
supernicejohn #1
Posted 05 December 2016 - 12:24 PM
http://imgur.com/a/WLPVU
From my new texteditor I'm working on, (that actually works :P/> )
I thought I would go with different colors than the default edit program, what do you think?

It also has a working non-color mode, as the color/code mode isn't finished yet. Any other suggestions are also welcome.


The image doesn't work :/ guess you have to click the link.
TheRockettek #2
Posted 05 December 2016 - 03:33 PM
You could always make the colours changeable by a variable :P/>

Like idk…

TextEditorColours.local = colours.yellow
TextEditorColours.text = colours.red
Etc.
supernicejohn #3
Posted 05 December 2016 - 06:51 PM
Yep! They're in a table called keywords, now I'm trying to get other characters to work, like '…', '..', '+' '-' and similar without being surrounded by spaces. ;)/>