Loading...
 

Syntax highlighter

Since Tiki7, Tiki is using CodeMirror (http://codemirror.net) as a syntax highlighter and indentation helper, which allows to highlight syntax in real time when the user is typing it.

CodeMirror.net wrote:
CodeMirror is a JavaScript library that can be used to create a relatively pleasant editor interface for code-like content - computer programs, HTML markup, and similar. If a parser has been written for the language you are editing, the code will be coloured, and the editor will help you with indentation.


This way, Tiki becomes a WYSIWYM editor ("What You See Is What You Mean"). This means that Tiki helps the author interpret different aspects of the code (tags, strings, subroutines and so forth) which are highlighted or given different colours. This is comparable to the way code editing software works. So instead of using mark-up during editing to illustrate the end result (WYSIWYG), mark-up is used to illustrate the meaning and functionality of different parts of the code.

It will also help with auto indentation of code (when required in some syntax) while typing it.

List Slides
Syntax highlighter Since Tiki7 , Tiki is using CodeMirror ( http://codemirror.net ) as a syntax highlighter and indentation helper, which allows to highlight syntax in real time when the user is typing it. CodeMirror.net wrote: CodeMirror is a JavaScript library that can be used to create a relatively pleasant editor interface for code-like content - computer programs, HTML markup, and similar. If a parser has been written for the language you are editing, the code will be coloured, and the editor will help you with indentation. This way, Tiki becomes a WYSIWYM editor ("What You See Is What You Mean"). This means that Tiki helps the author interpret different aspects of the code (tags, strings, subroutines and so forth) which are highlighted or given different colours. This is comparable to the way code editing software works. So instead of using mark-up during editing to illustrate the end result (WYSIWYG), mark-up is used to illustrate the meaning and functionality of different parts of the code. It will also help with auto indentation of code (when required in some syntax) while typing it.