Quickbook: source-mode teletype highlighting as c++

Hi, experimenting with source-mode teletype seems to have no effect: all imports are highlighted as c++. -- Wilhelm

On 22 December 2010 18:53, Wilhelm
experimenting with source-mode teletype seems to have no effect: all imports are highlighted as c++.
The [teletype], [c++] and [python] tags only effect syntax highlighting for code in quickbook. The highlighting for imports is determined by the file extension, and currently uses python for '.py' and c++ for everything else. Remember that importing requires special syntax to mark out the areas to be imported, and that's only implemented for python and C++. Daniel

On Wed, Dec 22, 2010 at 10:38 PM, Daniel James
On 22 December 2010 18:53, Wilhelm
wrote: experimenting with source-mode teletype seems to have no effect: all imports are highlighted as c++.
The [teletype], [c++] and [python] tags only effect syntax highlighting for code in quickbook. The highlighting for imports is determined by the file extension, and currently uses python for '.py' and c++ for everything else. Remember that importing requires special syntax to mark out the areas to be imported, and that's only implemented for python and C++.
Daniel _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I also need highlighting for other languages than C++ or Python. I was thinking about making my own hack, which took the code and parsed it through a beautifier that spits out html. Not elegant, but reasonable simple, well it's just a suggestion.
participants (3)
-
Bo Jensen
-
Daniel James
-
Wilhelm