Editing easy texts and code with Scribes

Slashdot it! Delicious Share on Facebook Tweet! Digg!

Syntax Highlighting

Whether you're writing HTML pages, Python script, or source code, these things are all considered text files. For developers to better understand the structure, many editors support so-called syntax highlighting. Thus, in an HTML page, you can more easily distinguish commands and attributes from actual content (e.g., captions and text).

Scribes can automatically detect the programming language format based on the file type. This means, when working with the editor, you should get into the habit of saving the file immediately after creating it to determine the desired format (Figure 2).

Figure 2: Thanks to color-coding, you can quickly find your way through the source code of scripts and programs.

Coding with Sparkup

These days, some preferred techniques are used to create prototypes quickly when developing software and in web design. Prototypes allow for rapid development and collection of feedback from clients. Among these techniques is Sparkup [2], which the Scribes editor supports.

Sparkup converts abbreviations to HTML or CSS statements, which is why its primary use is in web development. To use the function, save a document as an HTML or CSS file. Then, open an entry field at the lower edge of the window using Ctrl+E. This will contain the commands that the software subsequently converts. Enter the following code in the line:

div#header>h1#headline>p.test>li*3

After pressing Enter, the block code in Listing 2 appears in the main window.

Listing 2

Block Code for Sparkup

<div id="header">
  <h1 id="headline">
    <p class="test">
      <li></li>
      <li></li>
      <li></li>
    <p>
  </h1>
</div>

Buy this article as PDF

Express-Checkout as PDF

Pages: 5

Price $0.99
(incl. VAT)

Buy Ubuntu User

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content