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. General Programming
  3. C / C++ / MFC
  4. HOW DO I DO IT ????

HOW DO I DO IT ????

Scheduled Pinned Locked Moved C / C++ / MFC
questionsysadmintutorial
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.
  • T Offline
    T Offline
    The_Server
    wrote on last edited by
    #1

    I have a question that's realy bothering me. when I look at the forums question and answers, I see that the text is on a blue background and sometimes an example code on an orange background. How do you do that ???? Name: STR BTW: for some of you that wished for CodeProject irc server I create a channle on DalNet called "#CodeProject"

    M L 2 Replies Last reply
    0
    • T The_Server

      I have a question that's realy bothering me. when I look at the forums question and answers, I see that the text is on a blue background and sometimes an example code on an orange background. How do you do that ???? Name: STR BTW: for some of you that wished for CodeProject irc server I create a channle on DalNet called "#CodeProject"

      M Offline
      M Offline
      Malcolm McMahon
      wrote on last edited by
      #2

      This board accepts html tags in your posting. To include blocks of code you can use <PRE> or <CODE> If I put in <PRE> Some text </PRE> I get:

      Some Text

      <CODE> Produces text Like This (To make actual HTML appear as text you use "<" in place of "<")

      1 Reply Last reply
      0
      • T The_Server

        I have a question that's realy bothering me. when I look at the forums question and answers, I see that the text is on a blue background and sometimes an example code on an orange background. How do you do that ???? Name: STR BTW: for some of you that wished for CodeProject irc server I create a channle on DalNet called "#CodeProject"

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Sagiv this is done using the HTML tags <pre> and </pre>. You place them around your code and they keep the formatting exactly as you had it. Start your code immediately after <pre> on the same line or else you will get a blank line above your code. If you want to have a blank line between code you need to have a space on the line.

        void main()
        {
        return;
        }

        Michael Martin Pegasystems Pty Ltd Australia martm@pegasystems.com +61 413-004-018

        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