Main part using CodeMirror

The main part and extension part of the CodeMirror and basic usage of it.

Code Folder

The main part of  CodeMirror source code is under "ALINOUS_HOME/samples/alinous-code" folder.

code mirror code

Files in the folder

The "index.html" is main part of source code. The "ddl.alns" file has table definition of database tables.

Main Code

The main code of this program is below.

Index Html File

The "index.html" code is below.

In this file, it uses following external script.

  • /jquery/codemirror/lib/codemirror.js
  • /jquery/codemirror/mode/alinous/alinous.js
  • /jquery/codemirror//addon/hint/show-hint.js"
  • /samples/alinous-code/alinoushint.js
  • /jquery/codemirror/lib/codemirror.css
  • /jquery/codemirror/addon/hint/show-hint.css
  • /samples/alinous-code/textareadrv.js

Loading Test Data

The Test Data (Sample Script) is shown on the CodeMirror Editor. This code is loaded from text by following server side program.



Go to Top