Skip to content
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

[feature]show line numbers & can setting CRLF or LF #50

Closed
myoss opened this issue Jan 24, 2016 · 1 comment
Closed

[feature]show line numbers & can setting CRLF or LF #50

myoss opened this issue Jan 24, 2016 · 1 comment

Comments

@myoss
Copy link

myoss commented Jan 24, 2016

No description provided.

@pirtleshell
Copy link
Collaborator

Line numbers can pretty trivially be added to the editor by going to hexo-admin/lib/code-mirror.js and insert

lineNumbers: true

into the the CodeMirror configurations. You can directly insert this into line 25 and then gulp build in the hexo-admin root.

Here's the link to the option in the CodeMirror docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants