From: Edward T. <edw...@ti...> - 2008-10-21 22:47:45
|
I'm attaching a link to a small sample I am working on using XSTC. At present the sample only does a couple of things, but in developing it I am looking closer at the code for XSTC and extending it where needed. The sample is built with wxWidgets 2.9.0, it should build with earlier versions but features like colour exporting will not be available. I have built 3 exporters HTML (which supports version 4.0), xhtml, and rtf. I have added a few extra functions into the XSTC code to allow the user to query which styles are built in for colour coding and then selecting a style by name. I have added one extra style Matrix to see how easy it would be. I have also added a function ReLex. Before this the coulour styles were only set when the code was lexed, so to change the style you needed to reload the page (comment out the call to ReLex to see what I mean). I plan to spend some time adding functions to this code to make it support some of the features available in DevCpp, then hopefully it will make it easier to turn into a plugin. The link to the code is here http://myweb.tiscali.co.uk/monoworld/temp/sample.zip Sof.T |