Speify font-family for vimcolor plugin
-
Okay, I admit this not absolutely a wordpress nor a plugin question, it’s…, hmmm, a css question.
I use https://dev.wp-plugins.org/wiki/vimcolor for my syntax highlighting, mainly because that is the only one I could possibly find for highlighting LaTeX code.
The css content is:
div.codeblock {
-moz-border-radius: 5px;
padding: 5px;
margin-bottom:10px;
border: 1px solid #CCC;
width: auto;
overflow: auto;
text-align: left;
background-color: #EEE;
}.synComment { color: #0000FF }
.synConstant { color: #0000FF }
.synIdentifier { color: #008B8B }
.synStatement { color: #A52A2A ; font-weight: bold }
.synPreProc { color: #A020F0 }
.synType { color: #2E8B57 ; font-weight: bold }
.synSpecial { color: #6A5ACD }
.synUnderlined { color: #000000 ; text-decoration: underline }
.synError { color: #FFFFFF ; background: #FF0000 none }
.synTodo { color: #0000FF ; background: #FFFF00 none }I wanted to adjust the font-family for the code block, so I added the line font-family: Tahoma; to the div.codeblock class, like this:
div.codeblock {
font-family: Tahoma;
…
…
}Somehow the output ignored the setting, unless I add the font setting for each of the .syn***** class, is this the way as it should be? How do I make all .syn***** classes respect the setting in div.codeblock?
- The topic ‘Speify font-family for vimcolor plugin’ is closed to new replies.