seiif / share-extras

Automatically exported from code.google.com/p/share-extras
0 stars 0 forks source link

Javascript Console Syntax highlighting #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've attached a patch that adds syntax highlighting to the javascript console. 
It uses CodeMirror http://codemirror.net/ library.

Besides applying the patch, download from CodeMirror and add to 
/Javascript Console/source/web/components/console/codemirror
these files from the downloaded CodeMirror library
codemirror.css (from folder lib)
codemirror.js (from folder lib)
default.css (from folder theme)
javascript.js (from folder mode/javascript)

You may have to recheck that ctrl+enter submit works, other than that I think 
it is working as intended.

CodeMirror does support theming and stuff, but for this it just defaults.

Original issue reported on code.google.com by loftux.p...@gmail.com on 8 Jun 2011 at 1:10

Attachments:

GoogleCodeExporter commented 8 years ago
New diff file that fixes the ctrl+enter submit. Also adds line numbering.

Original comment by loftux.p...@gmail.com on 8 Jun 2011 at 2:17

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r438.

Original comment by Florian....@gmail.com on 8 Jun 2011 at 6:18