Text Formatting

When you are editing files with a syntax type that supports text formatting, you can quickly get tired of adding the syntax that is required for doing things like bolding, italicizing, underlining, etc. However, if you are using TKE to do the editing, then your editor has your back.

If you need to italicize some text that you have already typed, simply select the text and use the Edit / Format / Italics (or use the shortcut Command/Control-I). TKE will insert the correct syntax before or around the text. This functionality is super handy and will save a ton of keystrokes, but TKE’s text formatting capabilities don’t stop there.

If you need to bold some text that you are about to type, simply select the Edit / Format / Bold (or using the shortcut Command/Control-B). TKE will insert the proper emboldening syntax and place the cursor at the appropriate spot to start entering the text to be emboldened. Once you have finished entering the formatted text, if there is bold syntax following the text, simply enter the TAB key to move the cursor to the right of that syntax and continue entering text.

Bonus Tip: Any time that you are editing text and you are not filling in a snippet, hitting the TAB key will advance the cursor to the first whitespace character in the current line (unless the cursor is in the first column when the TAB key is entered).

If you need to remove syntax formatting, simply select the text (including the formatting syntax) and then select the Edit / Format / Remove Formatting (or use the Command/Control-minus keyboard shortcut). Any syntax that can be applied via the text formatting feature will be removed from the selected text.

Text formatting support is currently available for the following syntax descriptions:

  • Markdown
  • MultiMarkdown
  • Fountain
  • HTML
  • HelpSystem
  • ManPage
  • Latex

In addition to text formatting options, TKE also supports the following formatting (depending on the availability of the format support in the syntax):

Text Formatting Submenu

Simple, easy, powerful. TKE might just make text formatting fun again.

To see more information and download your copy of the TKE code editor, visit http://tke.sourceforge.net.

Advertisements
Text Formatting

URL Validator Plugin

URLs are all around us, sitting in text files which, when rendered, make up the fabric of the world-wide web. For as many good links there are, there are probably just as many URLs to non-existent web pages. If you enter URLs by hand, there are also opportunities for making fat-finger mistakes. Wouldn’t it be great if your text editor had some ability to verify any embedded URLs in its files?

Well, if your text editor is TKE, you do with the help of the URL validator plugin.

After the plugin is installed, going to the Plugins / URL Validator menu will display a few options. You can have the plugin find and validate all embedded URLs in the current file. You can select any URL-styled text and verify that text selection’s validity. You can also bring up an entry field in which you can enter a URL directly and verify it.

Whenever a validation occurs, the plugin will display the results in a separate window, represented in the following image.

URL Validator Result Window

Note that the validated URL is displayed with a good/bad icon, indicating the correctness of the URL. Additionally, the returned status and code are output in the window along with the line number within the editing buffer that contains the URL. You can jump the insertion cursor to the given line number by clicking on the URL entry in the status window.

Super simple. Super handy. What else would you expect?

To see more information and download your copy of the TKE code editor, visit http://tke.sourceforge.net.

URL Validator Plugin

Colorizer Plugin

If you do any work in HTML and CSS, you’ve probably spent your fair share of time coding color values; however, a value like “#432958” doesn’t really help you know exactly what color that value represents. Wouldn’t it be nice if the text editor could let you quickly visualize these color values?

TKE’s CSS Colorizer plugin to the rescue. If you are editing an HTML or CSS file, the Colorizer plugin will parse for all valid CSS-styled color syntax and set the background color of the syntax to the color that it represents.

 

To install the plugin, select the Plugin / Install… menu option and then select the “CSS Colorizer” from the resulting plugin list. Once the plugin has been installed, you can colorize any HTML/CSS/SCSS file by selecting the Plugins / CSS Colorizer / Colorize menu option. This will immediately colorize all of the color syntax within the current file.

Once you have selected the colorize menu option once for a file, any subsequent saves of that file will automatically re-colorize the file. You can also re-select the colorize menu option at any time to re-parse the file.

The following color syntax is supported:

  • #RRGGBB
  • #RGB
  • rgb( red, green, blue )
  • rgba( red, green, blue, alpha )
  • hsl( hue, saturation%, luminosity% )
  • hsla( hue, saturation%, luminosity%, alpha )

To see more information and download your copy of the TKE code editor, visit http://tke.sourceforge.net.

Colorizer Plugin

Syntax Management

You know that TKE has syntax highlighting and editing support for lots of programming languages and file formats which helps make TKE useful for a wide spectrum of users. However, because any one individual probably only uses a dozen or so in their normal workflow, displaying all of those unused languages is unnecessary. Fortunately, TKE has a solution that helps eliminate the language clutter in the UI.

Go to the Preferences window (Edit / Preferences / Edit Global – User), select the General pane and then the Languages tab as shown in the image below.

Language Preference Table

The languages table displays a listing of all supported languages within the application. To hide a language from view in the View / Set Syntax submenu and the syntax menu in the lower right-hand corner of the main application window, simply deselect the checkbox next to the syntax to hide. Likewise, you can unhide a language from view by selecting the checkbox.

Though hiding a syntax helps keep language clutter from occurring in the menus, it does not disable TKE from identifying and highlighting files of hidden languages if they those files are opened.

Since we are in the language management table, we’ll also point out that this table displays the syntax extensions for each language. If a file of a particular extension is opened, TKE will use the information from this table to automatically identify which syntax highlighting to apply to the file. The default extensions come from the TKE syntax description files. If you need to add, delete or change file extensions, simply click on the table cell to edit and make the appropriate changes.

To see more information and download your copy of the TKE code editor, visit http://tke.sourceforge.net.

Syntax Management