Output of Code Formatter

Posted by OmegaMan at May 1, 2007

Category: Bug Reports

Here is my code snippet in C#

// Line 1
a++;
// Line 3

When I look at the output html the above snippet looks like this


<div>
   <pre style="padding-right: 0px;
               padding-left: 0px;
               font-size: 8pt;
               padding-bottom: 0px;
               margin: 0em; overflow: visible;
               width: 100%; color: black;
               border-top-style: none;
               line-height: 12pt;
               padding-top: 0px;
               font-family: consolas, 'Courier New', courier, monospace;
               border-right-style: none;
               border-left-style: none;
               background-color: #f4f4f4; border-bottom-style: none"><span style="color: #008000">

// Line 1</span>
a++;
// Line 3</pre></div>

If you look at thefont-famly it comes out as consolas and not console.

Share

Leave a comment

(required)
(required) (will not be published)

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Recent Comments

    Thanks for this simple yet delightful code....
    Hey guys I'm having the same problem as Netanel KL { “Error HRESUL...
    Soluciono el problema con el primero (First step solved it for me)....
    Thank you! I was looking for this. You save my day!...
    Thank you! This was a big help. My requirement was a little differen...
    Thanks, after a small path adjustment it worked for Visual Studio 2015...
    Good call!...
    Thank you .. this helped...
    How about when you have a long string with no space? I tried it and it...
    Thank you, I ran into this same issues with Visual Studio 2015 after i...
  • Blog Stats

    • 138,462 hits