Skip to content

Commit

Permalink
Support for C# in CodeMirror
Browse files Browse the repository at this point in the history
  • Loading branch information
polterguy committed Nov 10, 2023
1 parent 4cf981f commit 1375595
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions frontend/src/app/codemirror/file-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,27 @@
}
}
},
{
"extensions": [
"cs"
],
"options": {
"mode": "text/x-csharp",
"lineNumbers": true,
"readOnly": false,
"tabSize": 4,
"indentUnit": 4,
"indentAuto": true,
"matchBrackets": true,
"theme": "aista",
"autofocus": true,
"styleActiveLine": true,
"extraKeys": {
"Shift-Tab": "indentLess",
"Tab": "indentMore"
}
}
},
{
"extensions": [
"sh"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import 'codemirror/mode/css/css';
import 'codemirror/mode/sass/sass';
import 'codemirror/mode/yaml/yaml';
import 'codemirror/mode/ruby/ruby';
import 'codemirror/mode/clike/clike';
import 'codemirror/mode/shell/shell';
import 'codemirror/mode/python/python';
import 'codemirror/mode/markdown/markdown';
Expand Down

0 comments on commit 1375595

Please sign in to comment.