Permalink
Browse files

Update CodeMirror mode notes

  • Loading branch information...
pmoura committed Dec 5, 2018
1 parent cc17ae1 commit 31dac458554a79bab8e46da7c98231167d0af66d
Showing with 7 additions and 3 deletions.
  1. +5 −1 coding/codemirror/NOTES.md
  2. +2 −2 coding/codemirror/index.html
@@ -26,11 +26,15 @@ In order to use CodeMirror for editing Logtalk source files, copy the file
directory.
The supporting files are work in progress and were obtained by converting
the Ace mode using the `ace2cm` converter:
the Ace mode using the `ace2cm` converter (and replacing `storage` by `meta`
in the token types in the regular expressions):
https://github.com/espadrine/ace2cm
The `logtalk.js` is licensed under the MIT license as other CodeMirror mode
files.
Supported themes must define CSS styles for `meta` and `variable`. Examples
are `ambiance`, `blackboard`, and `erlang-dark`.
THESE SYNTAX COLORING SUPPORT FILES ARE UNDER DEVELOPMENT.
@@ -5,7 +5,7 @@
<link rel=stylesheet href="../../doc/docs.css">
<link rel="stylesheet" href="../../lib/codemirror.css">
<link rel="stylesheet" href="../../theme/ambiance.css">
<link rel="stylesheet" href="../../theme/erlang-dark.css">
<script src="../../lib/codemirror.js"></script>
<script src="../../addon/edit/matchbrackets.js"></script>
<script src="logtalk.js"></script>
@@ -475,7 +475,7 @@ <h2>Logtalk mode</h2>
lineNumbers: true,
matchBrackets: true,
extraKeys: {"Tab": "indentAuto"},
theme: "ambiance"
theme: "erlang-dark"
});
</script>

0 comments on commit 31dac45

Please sign in to comment.