Code Block, SQL: SQL commands aren't recognized #955

Closed
opened 2026-02-04 23:09:29 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @steffenmaechtel on GitHub (Dec 14, 2018).

Code Block, SQL: SQL commands aren't recognized by CodeMirror (javascript library) and hence, they aren't highlighted correctly.

Example mark up:
<span role="presentation" style="padding-right: 0.1px;">FROM fe_users u</span>

Comparisons:

1) CodeMirror: SQL demonstration
https://codemirror.net/1/contrib/sql/

key word: "join"
<span class="sql-keyword">join </span>

2) CodeMirror: SQL Mode for CodeMirror
https://codemirror.net/mode/sql/

key word: FROM
<span class="cm-keyword">FROM</span>

Originally created by @steffenmaechtel on GitHub (Dec 14, 2018). **Code Block, SQL: SQL commands aren't recognized by CodeMirror (javascript library) and hence, they aren't highlighted correctly.** Example mark up: `<span role="presentation" style="padding-right: 0.1px;">FROM fe_users u</span>` Comparisons: _1) CodeMirror: SQL demonstration_ https://codemirror.net/1/contrib/sql/ key word: "join" `<span class="sql-keyword">join </span>` _2) CodeMirror: SQL Mode for CodeMirror_ https://codemirror.net/mode/sql/ key word: FROM `<span class="cm-keyword">FROM</span>`
OVERLORD added the 🐛 Bug💻 Front-End labels 2026-02-04 23:09:29 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Dec 16, 2018):

Thanks for reporting @steffenmaechtel.

Just need to tweak the mode used. Fix will be included in the next release.

@ssddanbrown commented on GitHub (Dec 16, 2018): Thanks for reporting @steffenmaechtel. Just need to tweak the mode used. Fix will be included in the next release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#955