| Dynamic Syntax Highlighting [message #1005843] |
Mon, 28 January 2013 18:46  |
Nathan M Messages: 5 Registered: January 2013 |
Junior Member |
|
|
Hi,
I'm wondering if it's possible to have some text in the editor get a certain TextStyle that isn't known until runtime.
For example, if in the editor the user types "#ffff00", I want the text to be yellow, if the user types "#ff0000" I want the text to be red, etc... Basically I don't know what the color of the text actually is until I have analyzed the user input.
Is there a way to do this?
[Updated on: Mon, 28 January 2013 20:26] Report message to a moderator
|
|
|
|
| Re: Dynamic Syntax Highlighting [message #1006716 is a reply to message #1005843] |
Fri, 01 February 2013 09:37  |
Nathan M Messages: 5 Registered: January 2013 |
Junior Member |
|
|
|
True, but as far as I can tell, you must preregister the particular highlighting configurations. In other words, I don't see how you can dynamically change the color of some text based on the value of the text in the editor (not unless you predefined every possible color that can exist...)
|
|
|
Powered by
FUDForum. Page generated in 0.08372 seconds