this is not a blog

I Reckon This Must be the Place, I Reckon

Other Code Sepositories

Simple Mark Up

SMU is Simple Markup, and is an API for text conversion, any format to any format, from case conversion to Markdown to [insert yours]. Any text to any text.

SMU is not a textutil like SED or AWK or TR, but simply a few PHP algorithms to apply regular expression conversions to input text.

Download SMU 1.4.2 code archive. But first read the SMU README.

Here is an example that converts text to uppercase:

PHP code $mu_lines = array(
   
'/(.*)/' => function($s){return strtoupper($s);},
);
include 
'smu.php';
simple_markup($argv[1]);