Jump to content




Random text highlighting


2 replies to this topic

#1 supernicejohn

  • Members
  • 98 posts
  • LocationSweden

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.

#2 TheRockettek

  • Members
  • 547 posts
  • LocationRem is best girl

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.

#3 supernicejohn

  • Members
  • 98 posts
  • LocationSweden

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. ;)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users