Example
All commands
Command Identifier Description Parameter color Changes the font color Either a Delphi color identifier or a hexadecimal color value. (Pascal style) (In fact anything that the Delphi function StringToColor can parse) style Changes the font style Either a "+", a "-" or a "~" followed by either "B", "I", "S" or "U" (for bold, italic, strike-out and underline). "+"/"-" switches the style on/off, while "~" toggles the specified font style. column Marks the end of the current column No parameters for this command. image Inserts an image from the image list provided by the ImageList property Index of the image you want to insert. hspace Inserts an empty margin. Only useful in combination with the \image{} command. Width of the margin in pixels.
Example
A formatted string...
function \column{}Length(S: string): \column{}Integer;
...with these column definitions:
- Column: (BiggestWord = "CONSTRUCTOR", FontStyle = [fsBold])
- Column: (BiggestWord = "VERYLONGDELPHIFUNCTION", FontStyle = [fsItalic, fsUnderline])
- Column: (BiggestWord = "INTEGER", FontStyle = [fsBold, fsItalic])
...looks like:
![]()
To convert a current application using the new TSynCompletionProposal would require these steps:
- Convert the current format strings to the new ones.
- Create one single column with its BiggestWord-property set to your old BiggestWord property.
- Wherever you expected from a #9 to change the font style you have to insert one \style{} command.