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

add html tag color #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions colors/ayu.vim
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,32 @@ call ayu#hi('xmlEqual', 'operator', '')

" }}}

" HTML:" {{{

hi def htmlBold term=bold cterm=bold gui=bold
hi def htmlBoldUnderline term=bold,underline cterm=bold,underline gui=bold,underline
hi def htmlBoldItalic term=bold,italic cterm=bold,italic gui=bold,italic
hi def htmlBoldUnderlineItalic term=bold,italic,underline cterm=bold,italic,underline gui=bold,italic,underline
hi def htmlUnderline term=underline cterm=underline gui=underline
hi def htmlUnderlineItalic term=italic,underline cterm=italic,underline gui=italic,underline
hi def htmlItalic term=italic cterm=italic gui=italic
Copy link
Owner

Choose a reason for hiding this comment

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

Are those needed?
From what I can see, they're already defined.

Copy link
Author

Choose a reason for hiding this comment

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

where's it located? when I install ayu without any other plugins, it doesn't show anything as defined by those codes. hm, maybe this is a problem with my terminal? I will check it again

Copy link
Owner

Choose a reason for hiding this comment

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

For me, it's defined here:
image

Copy link
Author

Choose a reason for hiding this comment

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

I agree, it looks like it needs to be removed and it is already built-in


" open - close tag
call ayu#hi('htmlTag', 'tag', '')
call ayu#hi('htmlTagName', 'entity', '')
call ayu#hi('htmlTagN', 'entity', '')
call ayu#hi('htmlEndTag', 'tag', '')

" attribute
call ayu#hi('htmlArg', 'operator', '')
Copy link
Owner

Choose a reason for hiding this comment

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

Change operator to accent to be even more consistent with VSCode & Sublime Text and we're good after that!


" text inner tag
hi link htmlH1 Normal
hi link htmlTitle Normal

" }}}


" INI:" {{{
call ayu#hi('dosiniHeader', 'keyword', '')
" }}}
Expand Down