Skip to content

Conversation

tomdyson
Copy link
Contributor

Addresses #13

Future enhancements could include autocompletion of table and column names, e.g. with

extraKeys: {"Ctrl-Space": "autocomplete"},
hintOptions: {tables: {
      users: ["name", "score", "birthDate"],
      countries: ["name", "population", "size"]
    }}

(see https://codemirror.net/doc/manual.html#addon_sql-hint and source at http://codemirror.net/mode/sql/)

@tomdyson tomdyson changed the title SQL syntax highlighting with Codemirror SQL syntax highlighting with CodeMirror Nov 14, 2017
@simonw
Copy link
Owner

simonw commented Nov 15, 2017

This is exactly what I was after, thanks!

@simonw simonw merged commit 8252daa into simonw:master Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants