I have a website where I show a lot of C++ source code in tables by creating styles named, preprocessor, operator, keyword, etcetera and applying these styles where appropriate to highlight the syntax in my code. The problem is that I have so far been doing it manually. For example I search the entire code and as I see keywords I style them as such. Is there any way of doing this that is not so tedious?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.