LoginLogin

Color system variable?

Root / Programming Questions / [.]

MinxrodCreated:
Hi! I was wondering if there was a way to access the 'color data,' the syntax highlighting color values, from within a program? Just wondering, since it could possibly be useful hehehehehe

Um..
COLOR #

I think he's trying to ask if it's possible to access the user's set options for syntax highlighting. I haven't found a way. I don't think it's possible.

Is that really going to do anything anyway? That only effects the colors in EDIT mode.

Is that really going to do anything anyway? That only effects the colors in EDIT mode.
Yes, it would do something: it would affect the colours in Edit mode, if written to. (It would allow the display of code, as it would appear in Edit mode, if read from.)

undefined
Well, quotes are broken :P
I think he's trying to ask if it's possible to access the user's set options for syntax highlighting. I haven't found a way. I don't think it's possible.
Yes, that's what I was wondering. Not text color, I got that even in Petit Computer. :)

If you download actorbug's LEX, it includes a syntax highlighting example. The example emulates the edit view and will change the color of text that matches various REGEX expressions. Its probably pretty close to what you want. He has a screen shot of a diff program using this for whole line coloring on the Miiverse: https://miiverse.nintendo.net/posts/AYIHAAAEAAASVZKcb08C1w EDIT: Reading harder, If you are trying to read user colors to do just this, I don't know of a way to know what colors the user has chosen...