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. IT & Infrastructure
  4. How to include code fragment on forum message?

How to include code fragment on forum message?

Scheduled Pinned Locked Moved IT & Infrastructure
questiontutorial
3 Posts 2 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.
  • K Offline
    K Offline
    Kurotora
    wrote on last edited by
    #1

    Hi, I tried to find but failed so asking here. How can I include code fragment on forum message like this? When I simply do this, it looks very bad. Someone do this nicely so there must be a RIGHT way for this. Where can I read description for that in Code Project? Thanks. I love Code Project, do you? Kurotora

    C 1 Reply Last reply
    0
    • K Kurotora

      Hi, I tried to find but failed so asking here. How can I include code fragment on forum message like this? When I simply do this, it looks very bad. Someone do this nicely so there must be a RIGHT way for this. Where can I read description for that in Code Project? Thanks. I love Code Project, do you? Kurotora

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The tags are pre and /pre, in <> than symbols, like this:

      #include <math.h> // Notice my #include is not lost - I use & gt and & lt without the space for this

      Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

      K 1 Reply Last reply
      0
      • C Christian Graus

        The tags are pre and /pre, in <> than symbols, like this:

        #include <math.h> // Notice my #include is not lost - I use & gt and & lt without the space for this

        Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

        K Offline
        K Offline
        Kurotora
        wrote on last edited by
        #3

        Christian,

        for(i = 0 ; i < 8 ; ++i)
        

        Oh!:) It worked. Isn't it nice to have short help for this kind of staff on Posting page? Tnanks. I love Code Project, do you? Kurotora

        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