Hello, I'm using C++ and wanted to start including code in some of the output. Unfortunately I can't seem to get it working in my files. Even the example from the page itself results in nothing. Other documentation from that particular page works fine, but the code part never seems to come through. Am I missing something here? It seems to work in a very simple text file I tried but it doesn't want to work in my source code files. Here's an example snippet from one of them
// $LastChangedBy: DrEvil $
// $LastChangedDate: 2006-04-30 17:19:23 -0400 (Sun, 30 Apr 2006) $
// $LastChangedRevision: 1200 $
// Title: TF Config
// constants: Game constants
// RADAR_CELL_REQUIREMENT - Number of cells required to use the radar.
// BUILD_SENTRY_REQUIREMENT - Number of cells required to build a sentry gun.
// BUILD_DISPENSER_REQUIREMENT - Number of cells required to build a dispenser.
Perhaps something in my other commenting style if screwing it up, but this is the first area I've come across that is having problems. Any ideas?
I think the example on my site is not clear. It has to be part of the comment, as it's used to allow people to post example code in their comments without killing the formatting, not to bring live code into the documentation.
Is there a way I can get it to pull code that isn't from a comment? Sometimes one may want the live code to be put in the docs, like constants, enumerations, etc... It seems rather limiting that it be required to be commented code, forcing the user to copy and paste the same thing again only commented out. Especially with the presence of a start and end tag it doesnt make sense to me that it not support live code as well ?
Not currently. I filed a feature request so this should make it in at some point.
Are there any updates on the addition of this feature?
I don't have plans to add it at the moment. I'm not dead set against it but it's not a priority.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.