Article Fonts (fixed width, code, etc.)?
-
For articles I know if I have code I can place it inline via <code>some code</code> or for several lines of code I can enclose in <pre><code>several lines of code</code></pre> How about if I want to inline a fixed with font, say for a filename? Can I use the <tt> tag? Or what should I use? Is there a list of font formats I can use in articles?
-
For articles I know if I have code I can place it inline via <code>some code</code> or for several lines of code I can enclose in <pre><code>several lines of code</code></pre> How about if I want to inline a fixed with font, say for a filename? Can I use the <tt> tag? Or what should I use? Is there a list of font formats I can use in articles?
For several lines code you are wrong, it should be <pre lang = "xxx"> several lines of code </pre> For more information about formatting, please read: Using the Article Editor (without losing your hair in handfuls)[^] Article Formatting tips for CodeProject[^] Formatting Code in Tips and Tricks[^]
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
-
For articles I know if I have code I can place it inline via <code>some code</code> or for several lines of code I can enclose in <pre><code>several lines of code</code></pre> How about if I want to inline a fixed with font, say for a filename? Can I use the <tt> tag? Or what should I use? Is there a list of font formats I can use in articles?
For filenames you want to use <em> You can see a list of our formatting guidelines here: CodeProject Article FAQ - Part 2: How to Post an Article on CodeProject [^]
Thanks, Sean Ewington CodeProject