hltPHPLikeVim
Questions answered by this recipe
I use the greatest text editor in the world - Vim.
I love the color it has, but it appears there is no way
to hilite code that looks even close to what I see in Vim.
How do I make PHP code display just like it is in Vim?
Description
Make your PHP code look great in PmWiki pages
This is based on a custom state machine that mimics Vim's line-by-line
regex engine. It directly puts colors into html rather than CSS because
bandwidth is not an issue like it was 25 years ago.
Installation
Add one line to you config.php file.
require_once("hltPHPLikeVim.php");
Usage
Around PHP code put page directives like this:
(:hltPHPLikeVim:)
<?php echo "Hello world" ;?>
(:hltPHPLikeVimEnd:)
Your code will display in the beautiful colors that Vim displays.

Click to see this image full size:
Change log / Release notes
Initial Release: Version 20260414
Comments
See discussion at HltPHPLikeVim-Talk
User notes : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.
