-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bundle): client and server compatibility (#20)
* fix(bundle): making syntax highlighter compatible on client and server - Exposing modes and getmode as core exports * chore: documentation
- Loading branch information
Showing
8 changed files
with
58 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import uppercase from './utils/uppercase'; | ||
import canonical from './utils/canonical'; | ||
import { modes, getMode } from './utils/modes'; | ||
|
||
export { uppercase, canonical, modes, getMode }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Codemirror-specfic mode-integrations, used for styling syntax | ||
require('codemirror/mode/clike/clike'); | ||
require('codemirror/mode/clojure/clojure'); | ||
require('codemirror/mode/d/d'); | ||
require('codemirror/mode/dart/dart'); | ||
require('codemirror/mode/diff/diff'); | ||
require('codemirror/mode/dockerfile/dockerfile'); | ||
require('codemirror/mode/erlang/erlang'); | ||
require('codemirror/mode/go/go'); | ||
require('codemirror/mode/groovy/groovy'); | ||
require('codemirror/mode/htmlmixed/htmlmixed'); | ||
require('codemirror/mode/http/http'); | ||
require('codemirror/mode/javascript/javascript'); | ||
require('codemirror/mode/julia/julia'); | ||
require('codemirror/mode/perl/perl'); | ||
require('codemirror/mode/php/php'); | ||
require('codemirror/mode/powershell/powershell'); | ||
require('codemirror/mode/python/python'); | ||
require('codemirror/mode/ruby/ruby'); | ||
require('codemirror/mode/rust/rust'); | ||
require('codemirror/mode/shell/shell'); | ||
require('codemirror/mode/sql/sql'); | ||
require('codemirror/mode/swift/swift'); | ||
require('codemirror/mode/yaml/yaml'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters