Skip to content

Enable code syntax highlighting on "Snippet" page #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 2, 2018
Merged

Conversation

ikalnytskyi
Copy link
Member

Well, because we miss one :)

@ikalnytskyi ikalnytskyi requested review from lotrien and malor January 2, 2018 21:05
// Bundle CodeMirror's syntaxes along with main application. There are
// around 120 syntaxes and we, of course, do not want to import all of
// them from within the application, hence this hack.
...glob.sync(path.resolve(__dirname, 'node_modules', 'codemirror', 'mode', '*', '*.js')),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice workaround! 👍

Copy link
Member

@malor malor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lotrien lotrien requested a review from AinuraAliieva January 2, 2018 21:12
@malor malor merged commit 674b5df into master Jan 2, 2018
@malor malor deleted the syntax-highlight branch January 2, 2018 21:14
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.

3 participants