Using Tcl Editing FeaturesAll of Komodo's editing features are available when you are coding in Tcl. The examples and simple exercises below provide an introduction to these features. Syntax ColoringKomodo detects keywords in your code and applies coloring that makes it easier to quickly identify specific elements. For example, in dlg_tcl_check.tcl, on line 36, notice that the "set" command is a different color from the strings "normal" and "disabled". You can specify coloring for these and many other Tcl elements with the Fonts and Colors Preferences (Edit|Preferences|Fonts and Colors). ![]() AutoComplete and CallTipsKomodo helps to make coding faster by displaying available methods for Tcl commands. Komodo also shows you the list of arguments you can pass to a function you are calling.
![]() Background Syntax CheckingKomodo checks for syntax errors in your Tcl code as you type. Komodo informs you of these errors by displaying red and green squiggly lines below the code. Syntax errors are underlined with a red squiggly line; syntax warnings are underlined with a green squiggly line. Notice that the text you typed in the previous step, "string is alnum," is underlined with a red squiggle. Position your cursor on the line with the squiggle to display a warning message on the status bar. Delete "string is alnum". ![]() Code FoldingYou can collapse and expand blocks of code to make it easier to view or analyze the structure of your code.
|