html editor with c/c++ source code formatting

Status
Not open for further replies.
Hi

I have to write a tutorial for c++ class library which will have to be in html. I am looking for wysiwyg html editor that can format c/c++ source code examples in the page. The document format should look like https://www.movesinstitute.org/Sullivan ... Camera.htm

or somethings like below, though if it could colorize the source would be great.

Code:
#include <iostream>

int main(int argc, char** argv)
{
  std::cout << "HelloWorld\n";
  return 0;
}
 
I don't think you want to be relying on an HTML wsywig editor to syntax highlight source code for you. I think you want to install something like highlight.js (http://softwaremaniacs.org/soft/highlight/en/) to do it for you. And then set up your workflow so that it displays your work in a real world browser instead of a fake, home-grown browser that's integrated into the editor. Or http://www.andre-simon.de/ to manually format the codeblocks and paste them into your wysiwyg. (The VS one linked above - same concept).
 
Status
Not open for further replies.