XSL

XSL is a language for expressing style sheets. An XSL style sheet is, like with CSS, a file that describes how to display an XML document of a given type. XSL shares the functionality and is compatible with CSS2 (although it uses a different syntax)

CodeLobster IDE has essential built-in support for XSL, and provides following features for comfortable work with .xsl files:

XSL syntax highlighting

CodeLobster IDE supports XSL syntax highlighting in Editor to make it easier to read the semantics of the structured content by displaying each type of code in different colors and fonts. It helps check code for errors as it highlights mismatched enclosing characters with a different color.

To customize the colors or styles used for the syntax highlighting colors for .xsl files, follow these steps:

  1. Open the Preferences dialog box (Tools | Preferences...).

  2. Go to Editor | Colors.

  3. In the Show settings for: component select XML/HTML item and customize the colors or styles using the selectors to the right of the pane.

Highlight matching tag

CodeLobster IDE highlights matching opening or closing tags. Enclosing tags are highlighted in pairs when a cursor is placed between the beginning and ending enclosing characters.

This feature helps to navigate and check code for errors, as it highlights mismatched enclosing characters with a different color that you can change in the Preferences | Edit menu.

Autoclosing tag

CodeLobster IDE automatically adds a closing tag when you type in the closing bracket of the opening tag. After typing in the closing bracket of the opening tag, the closing tag will be inserted automatically.

After closing tag is inserted, the cursor is between the opening and closing tag:

Code folding

You can fold or unfold any manually selected regions in code. CodeLobster IDE folds or unfolds the current code fragment, for example, a single method. Folded code fragments are shown as a shaded box ( ).

Code commenting

CodeLobster IDE comments the lines on depending on the syntax of the selected code (<! –– HTML ––>, /* CSS */, and so on).

  • To comment on a line of code, place the caret at the appropriate line and press Alt + C or select Edit | Comment line main menu item.

    Also, you can Comment Line by Line pressing Alt + X or select Edit | Comment lines by the line main menu item.

  • To uncomment selected fragment of code, use Alt + U shortcut or select Edit | Uncomment lines main menu item.

If you need to undo or redo your changes, press Ctrl + Z (Ctrl + Shift + Z) respectively.

[Note]Note

See more about Comment lines