I have a question, does this library already have support for nested languages? I didn't understand what LanguageParser.AppendCapturedStylesForNestedLanguage is used for. It would be nice to have some source code documentation.
I thought about adding some new members (like parent language, regex for language start and end tags) to ILanguage but I gave up since it would require massive modifications. I am planning to implement my own ILanguageParser and first split text into chunks of languages and colorize them seperately and then return the merged result.
For example the following php source code will be first split into chunks of languages and colorized seperately using their respective languages :
<html>
somehtmlcode... will be highlighted as html
<?php
php code... will be highlighted as php
?>
<script language="javascript">
somejavascript code... will be highlighted as javascript
<?php inline php code highlighted as php inside a javascript block ?>
</script>
Any ideas are welcome