Skip to content

Syntax highlighting #245

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 13 commits into from
Jul 19, 2020
Merged

Syntax highlighting #245

merged 13 commits into from
Jul 19, 2020

Conversation

sdras
Copy link
Member

@sdras sdras commented Jul 19, 2020

We don't have to go in this direction, but I thought it might be nice to separate from the default vuepress styles and go a little more towards the default vue docs syntax highlighting. Let me know what you think!

@NataliaTepluhina
Copy link
Member

@sdras it looks nice! The only thing is line numbers are very contrasting comparing to the code itself:

Screenshot_7

@sdras
Copy link
Member Author

sdras commented Jul 19, 2020

Good shout! The line highlighting isn't showing up locally so trying a few things here, one sec

Copy link
Member

@NataliaTepluhina NataliaTepluhina left a comment

Choose a reason for hiding this comment

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

Looks great now! Approved

const MOBILE_DESKTOP_BREAKPOINT = 719 // refer to config.styl
const NAVBAR_VERTICAL_PADDING = parseInt(css(this.$el, 'paddingLeft')) + parseInt(css(this.$el, 'paddingRight'))
const NAVBAR_VERTICAL_PADDING =
parseInt(css(this.$el, 'paddingLeft')) +
Copy link
Contributor

Choose a reason for hiding this comment

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

parseInt(..., 10) ?

@sdras sdras merged commit ae9dcdf into master Jul 19, 2020
@NataliaTepluhina NataliaTepluhina deleted the syntax-highlighting branch August 3, 2020 04:42
TalexDreamSoul pushed a commit to Talexs/docs that referenced this pull request Apr 17, 2022
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.

4 participants