Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
7182ddf3
Commit
7182ddf3
authored
May 11, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code_mirror: Use mariadb for SQL mode
parent
aab0ea16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/code_mirror_support.xml
...tem/portal_skins/erp5_code_mirror/code_mirror_support.xml
+7
-2
No files found.
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/code_mirror_support.xml
View file @
7182ddf3
...
@@ -464,6 +464,11 @@
...
@@ -464,6 +464,11 @@
updateLinting(cm,
found);\n
updateLinting(cm,
found);\n
});\n
});\n
}\n
}\n
\n
var
mode =
"&dtml-mode;"
;\n
if
(
mode =
==
"sql"
)
{\n
mode =
"text/x-mariadb"
;\n
}\n
\n
\n
<dtml-if
expr=
"mode == \'python\'"
>
\n
<dtml-if
expr=
"mode == \'python\'"
>
\n
lint_option = {"getAnnotations": checkPythonSourceCode,\n
lint_option = {"getAnnotations": checkPythonSourceCode,\n
...
@@ -477,7 +482,7 @@
...
@@ -477,7 +482,7 @@
// CodeMirror expects a DOM element, not a JQuery Object\n
// CodeMirror expects a DOM element, not a JQuery Object\n
var cm = CodeMirror.fromTextArea(\n
var cm = CodeMirror.fromTextArea(\n
getTextareaField()[0],\n
getTextareaField()[0],\n
{mode:
"
&dtml-mode;
"
,\n
{mode:
mode
,\n
lineNumbers: true,\n
lineNumbers: true,\n
showTrailingSpace: true,\n
showTrailingSpace: true,\n
tabSize: 2,\n
tabSize: 2,\n
...
@@ -534,7 +539,7 @@
...
@@ -534,7 +539,7 @@
{value: cm.getValue(),\n
{value: cm.getValue(),\n
orig: data,\n
orig: data,\n
highlightDifferences: true,\n
highlightDifferences: true,\n
mode:
"
&dtml-mode;
"
,\n
mode:
mode
,\n
lineNumbers: true,\n
lineNumbers: true,\n
showTrailingSpace: true,\n
showTrailingSpace: true,\n
matchBrackets: true,\n
matchBrackets: true,\n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment