• Resolved en_joy

    (@en_joy)


    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • you sure there isn’t a type ‘inbetween’ .codeblock and the .syn**** classes that is overriding the font? That’s what it would sound like to me.

    -d

    Thread Starter en_joy

    (@en_joy)

    not sure…, shame on me i am such a noooob in css;-) i just copy-and-pasted the file style.css that is shipped with the plugin into wordpress/wp-content/theme/default/style.css

    and the pasted content was exactly in my first post, what should i look for then?

    thanks for the reply!

    I’ve never used the plugin, so I can’t say for sure…

    Try something like

    .codeblock code {…};

    -d

    Thread Starter en_joy

    (@en_joy)

    .codeblock code {font-family:”Bitstream Vera Sans Mono”, Monaco, “Lucida Console”, monospace};

    worked out like a charm!

    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Speify font-family for vimcolor plugin’ is closed to new replies.