Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1168446
D209.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Sep 24, 2:41 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Thu, Sep 25, 2:41 PM (2 h, 16 m)
Engine
blob
Format
Raw Data
Handle
756942
Attached To
D209: INP-1545 - Enable SQL syntax highlight in "Tools > Query Database" section
D209.diff
View Options
Index: branches/5.3.x/core/admin_templates/tools/sql_query.tpl
===================================================================
--- branches/5.3.x/core/admin_templates/tools/sql_query.tpl
+++ branches/5.3.x/core/admin_templates/tools/sql_query.tpl
@@ -57,7 +57,7 @@
<inp2:adm_IncludeCodeMirrorFilesByLanguage language="text/x-mysql" render_as="code_mirror_resource"/>
<script type="text/javascript">
- var $editor = CodeMirror.fromTextArea(document.kernel_form.sql, {mode: "mysql", tabindex: <inp2:m_Get name="tab_index"/>, indentWithTabs: true, indentUnit: 4, lineWrapping: true, lineNumbers: true});
+ var $editor = CodeMirror.fromTextArea(document.kernel_form.sql, {mode: "text/x-mysql", tabindex: <inp2:m_Get name="tab_index"/>, indentWithTabs: true, indentUnit: 4, lineWrapping: true, lineNumbers: true});
$editor.setSize(null, 155);
</script>
</td>
@@ -111,4 +111,4 @@
</inp2:m_if>
</inp2:m_if>
-<inp2:m_include t="incs/footer"/>
\ No newline at end of file
+<inp2:m_include t="incs/footer"/>
Event Timeline
Log In to Comment