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?
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?
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
You can write ActiveX controls and implement IDispatch to make methods availible to scripting languages, HTML, VB (custom as well), or ASP.
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.
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
you can use the 'code' and '/code' tags, or the 'pre' '/pre' tags might work better...