GithubHelp home page GithubHelp logo

Italic HTML attribute names about onedark.vim HOT 8 CLOSED

garand avatar garand commented on September 28, 2024
Italic HTML attribute names

from onedark.vim.

Comments (8)

simonsmith avatar simonsmith commented on September 28, 2024 2

Hey,

Unless it matches the Atom theme I don't think we would add it. Might be something to keep in your own fork.

from onedark.vim.

webdesus avatar webdesus commented on September 28, 2024 1

Hey @garand now you can easily change some styles link

from onedark.vim.

garand avatar garand commented on September 28, 2024

I added this to the onedark.vim file and it is working properly. Maybe I'll submit a PR later!
screen shot 2016-12-15 at 11 36 23 am

from onedark.vim.

webdesus avatar webdesus commented on September 28, 2024

@garand you can add function s:h inside your VIMRC, and ibid write your own change(call s:h("htmlArg", ...)) or make fork.

from onedark.vim.

joshdick avatar joshdick commented on September 28, 2024

@garand Thanks for the suggestion, but I agree with @simonsmith and @webdesus -- this would not match the Atom theme and thus I don't think it should be changed.

from onedark.vim.

garand avatar garand commented on September 28, 2024

@joshdick Okay, sounds good. 👍

@webdesus I'm not foo familiar with what you're saying, do you have an example I could look at?

from onedark.vim.

webdesus avatar webdesus commented on September 28, 2024

@garand add this function code in VIMRC

function! s:h(group, style)
  if g:onedark_terminal_italics == 0
    if has_key(a:style, "cterm") && a:style["cterm"] == "italic"
      unlet a:style.cterm
    endif
    if has_key(a:style, "gui") && a:style["gui"] == "italic"
      unlet a:style.gui
    endif
  endif
  if g:onedark_termcolors == 16
    let l:ctermfg = (has_key(a:style, "fg") ? a:style.fg.cterm16 : "NONE")
    let l:ctermbg = (has_key(a:style, "bg") ? a:style.bg.cterm16 : "NONE")
  else
    let l:ctermfg = (has_key(a:style, "fg") ? a:style.fg.cterm : "NONE")
    let l:ctermbg = (has_key(a:style, "bg") ? a:style.bg.cterm : "NONE")
  endif
  execute "highlight" a:group
    \ "guifg="   (has_key(a:style, "fg")    ? a:style.fg.gui   : "NONE")
    \ "guibg="   (has_key(a:style, "bg")    ? a:style.bg.gui   : "NONE")
    \ "guisp="   (has_key(a:style, "sp")    ? a:style.sp.gui   : "NONE")
    \ "gui="     (has_key(a:style, "gui")   ? a:style.gui      : "NONE")
    \ "ctermfg=" . l:ctermfg
    \ "ctermbg=" . l:ctermbg
    \ "cterm="   (has_key(a:style, "cterm") ? a:style.cterm    : "NONE")
endfunction

Then add what you want. For this problem you should add next code

let s:dark_yellow = { "gui": "#D19A66", "cterm": "173", "cterm16": "11" }
call s:h("htmlArg", {"fg": s:dark_yellow, "gui":"italic","cterm": "italic"})

from onedark.vim.

garand avatar garand commented on September 28, 2024

@webdesus Great! Thanks. 😄

from onedark.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.