1 2 Previous Next 15 Replies Latest reply on Oct 31, 2016 5:05 PM by Dude!

    Default CSS for monospace font option

    William Robertson

      In a technical forum like this, it is quite common to want to highlight some text as a code keyword or fragment, similar to Stack Overflow's backticks. The "Font family" dropdown provides a choice of two monospace fonts, Andale Mono and Courier New, which generate the following CSS:


          <span style="font-family: 'andale mono', times;">Andale Mono</span>

          <span style="font-family: 'courier new', courier;">Courier New</span>


      Neither of them has a monospace fallback, and the "times" default for Apple font Andale makes it look weird on Windows.


      Is there any chance that a monospace default could be added? Or perhaps better, a simple 'Code' option?


      What it should be is:


          <span style="font-family: 'andale mono', monospace;">Andale Mono</span>

          <span style="font-family: 'courier new', courier, monospace;">Courier New</span>


      or just replace both with a 'code' option:


          <code>your text</code>


      with some CSS styling to make it stand out a bit more than it does currently.

        1 2 Previous Next