Syntax coloring in Spider

In source code editing programs, no matter what is the language, syntax coloring is an essential feature. Well-designed syntax coloring makes it significantly easier to find your way around the code.

Spider has more than 40 syntax coloring schemes, optimally tailored to the needs of different users. So there are simpler schemes, coloring only one selected language - e.g. JavaScript, CSS, etc. There are also more advanced schemes that color more languages at once, such as DHTML, which supports HTML, JavaScript, VBScript, CSS simultaneously. Server-side technology languages such as PHP, ASP, ColdFusion, Perl, C, MySQL query coloring and others are also supported.

Users of Spider will certainly be interested in the two coloring schemes:

  • HTML Categorized, which applies different colors to different types of HTML tags (images in blue, links in red, tables in green, etc.). This makes the code even clearer, making it easier to see where the image you are looking for, for example, is located.
  • HTML Validator, which is more extensive than other HTML coloring schemes. In addition to making HTML code more readable by highlighting tags and their attributes with different colors, it makes it possible to spot common errors. These errors can relate to undersized tags, invalid attributes or missing inverted commas around attribute values, as well as the extent to which different browsers support the tags. Different types of errors are highlighted in different colors.

Using coloring schemes on older computers
Older computers may have a problem when working with more complex coloring schemes, such as HTML+PHP, as it can put a lot of strain on the editor due to its complexity and size. Therefore, if you are not editing advanced PHP scripts, it is advisable to use, for example, HTML+PHP simple coloring. The same is true for e.g. DHTML script, instead of which you can use HTML+JavaScript, HTML+CSS or HTML+VBScript depending on your current needs. Thanks to the ability to change the coloring scheme at runtime, this does not pose any problems at all.

Editing syntax coloring

In Spider, you can create new and edit existing coloring schemes. This is done using the color Scheme Editor. Please note that changes made to a coloring scheme cannot be undone and this option should be used with caution. It is best to save schemes under a new name, or make a backup copy of existing schemes (files with the *.sch extension)

You can also adjust the colors of an existing schema using the program Settings - Syntax coloring window.

Using schemas when working with a program

Spider automatically recognises which coloring scheme to use for a given document after extending the file name. You can change the setting of the default coloring scheme for a given type in the Program Settings - Syntax color ing / Highlighting scheme properties window. Spider also remembers which coloring scheme was used when the document in question was closed, and this will be applied the next time the document is opened.

Changing the highlighting scheme during operation
In Spider, it is possible to change the coloring scheme used to edit the selected document without interrupting your work! To do this, use the Select syntax coloring scheme command on the mini toolbar on the left-hand side of the editor, which will expand the list of all available schemes.

Related topics

To top