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

<<attachment: cmake.php>>

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to