Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Article Writing
  4. Article Fonts (fixed width, code, etc.)?

Article Fonts (fixed width, code, etc.)?

Scheduled Pinned Locked Moved Article Writing
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    David Deley
    wrote on last edited by
    #1

    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?

    N S 2 Replies Last reply
    0
    • D David Deley

      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?

      N Offline
      N Offline
      Nelek
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • D David Deley

        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?

        S Offline
        S Offline
        Sean Ewington
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups