routine or constant name search

8.50 Syntax Coloring

Syntax Color Break Euphoria statements into words with multiple colors. The editor and pretty printer (eprint.ex) both use this file.

8.50.1 Routines

8.50.1.1 set_colors

include euphoria/syncolor.e
namespace syncolor
public procedure set_colors(sequence pColorList)

8.50.1.2 init_class

include euphoria/syncolor.e
namespace syncolor
public procedure init_class()

8.50.1.3 new

include euphoria/syncolor.e
namespace syncolor
public function new()

Create a new colorizer state

See Also:

reset, SyntaxColor

8.50.1.4 BadSig:

include euphoria/syncolor.e
namespace syncolor
procedure tokenize_reset(atom token)

Reset the state to begin parsing a new file

See Also:

new, SyntaxColor

8.50.1.5 reset

include euphoria/syncolor.e
namespace syncolor
public procedure reset(atom state = g_state)

8.50.1.6 keep_newlines

include euphoria/syncolor.e
namespace syncolor
public procedure keep_newlines(integer val = 1, atom state = g_state)

8.50.1.7 SyntaxColor

include euphoria/syncolor.e
namespace syncolor
public function SyntaxColor(sequence pline, atom state = g_state)

Parse Euphoria code into tokens of like colors.

Break up a new-line terminated line into colored text segments identifying the various parts of the Euphoria language. They are broken into separate tokens.

Returns:
A sequence that looks like:
{color1, "text1"}, {color2, "text2"}, ... }