[CMake] Mediawiki CMake syntax highlighting
Daniel Nelson
torham at connect2.com
Mon Nov 30 02:34:41 EST 2009
On Sunday 29 November 2009 11:14:03 am David Doria wrote:
> I was wondering if there was any talk of adding cmake script support
> to mediawiki's >source lang="X"> capability.
>
> It looks terrible if you just use "text":
> http://www.cmake.org/Wiki/Paraview_Make_building_Paraview_plugin_optional
>
> And to make it look nice, you have to drastically alter the code
> (manual syntax highlighting):
> http://www.cmake.org/Wiki/Plugin_HowTo#Compiling_into_a_Shared_Library
>
> Any thoughts on this?
>
> Thanks,
>
> David
I wrote a cmake highlighting for geshi earlier this year, if you install the
geshi plugin for mediawiki, and place the attached file in your geshi folder,
you should be able to get highlighting like so:
<source lang="cmake">
project(test)
</source>
There are a few bugs, such as nested variables ${${foo}}, but it mostly works.
I was going to fix that and then pass it along to the geshi guys, but I never
got around to it.
--
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake.php
Type: application/x-php
Size: 7327 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091130/8bdbe234/attachment-0001.bin>
More information about the CMake
mailing list