routine or constant name search

8.49 Syntax Coloring

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

8.49.1 Routines

8.49.1.1 set_colors

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

8.49.1.2 init_class

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

8.49.1.3 new

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

Create a new colorizer state

See Also:

reset, SyntaxColor

8.49.1.4 reset

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

Reset the state to begin parsing a new file

See Also:

new, SyntaxColor

8.49.1.5 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. Consecutive characters of the same color are all placed in the same 'segment' - seg_start..seg_end.

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