Syntax Highlighting - Multi-document Editors

Multi-document Editors

For editors that support more than one language, the user can usually specify the language of the text, such as C, LaTeX, HTML, or the text editor can automatically recognize it based on the file extension or by scanning contents of the file. This automatic language detection presents potential problems. For example, a user may want to edit a document containing:

  • more than one language (for example when editing an HTML file that contains embedded JavaScript code).
  • a language that is not recognized (for example when editing source code for an obscure or relatively new programming language).
  • a language that differs from the file type (for example when editing source code in an extension-less file in an editor that uses file extensions to detect the language)

In these cases, it is not clear what language to use, and a document may not be highlighted or be highlighted incorrectly.

Read more about this topic:  Syntax Highlighting

Famous quotes containing the word editors:

    Narrowed-down by her early editors and anthologists, reduced to quaintness or spinsterish oddity by many of her commentators, sentimentalized, fallen-in-love with like some gnomic Garbo, still unread in the breadth and depth of her full range of work, she was, and is, a wonder to me when I try to imagine myself into that mind.
    Adrienne Rich (b. 1929)