c++ html Question?

This is a discussion on c++ html Question? within the C++ Programming forums, part of the General Programming Boards category; I want to post my programs on a html page and my problem is what is the correct code tag ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    84

    c++ html Question?

    I want to post my programs on a html page and my problem is what is the correct code tag for the C++ code? Do I have to code every line of code individually?

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    241
    you can't use the code in your page. you could display the code, but you can't write c++ code on a page and expect it to do something. try JavaScript or a similar language instead

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    156
    You can write ActiveX controls and implement IDispatch to make methods availible to scripting languages, HTML, VB (custom as well), or ASP.

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    84

    Let me clarify

    I don't want to use the code in my page, I just want to post the code on a html page and so is formatted like it would be in a C++ enviroment. I was looking for a code tag to do this instead of having to put code tags on every line of code in the C++ file that i want to post.

  5. #5
    Registered User
    Join Date
    Nov 2001
    Posts
    241
    I don't know any code that can do that, and even if I did, it probably would end up not working with half the browsers cause I seem to have that kind of luck

  6. #6
    Registered User dirkduck's Avatar
    Join Date
    Aug 2001
    Posts
    428
    you can use the 'code' and '/code' tags, or the 'pre' '/pre' tags might work better...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Exam Question - Possible Mistake?
    By Richie T in forum C++ Programming
    Replies: 15
    Last Post: 05-08-2006, 03:44 PM
  2. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 08:22 PM
  3. Design + HTML
    By orbitz in forum C Programming
    Replies: 8
    Last Post: 11-21-2002, 05:32 AM
  4. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 02:57 PM
  5. HTML question
    By Dave18 in forum Tech Board
    Replies: 5
    Last Post: 09-27-2002, 06:36 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21