> > role="php" is used for PHP color highlighting in the new > > CHM version, and may be used for other things (eg. generating > > an index of examples by type). So if an example contains sql > > code, then it's quite nice to have it with role="sql". > > role="mysql" may be too specific though... > > imho having a sql string show as a normal PHP string > is fine. What would role="sql" do, make keywords > like SELECT and INSERT bold?
Maybe :) And would also be useful in an "examples by type" index ;)) role="sql" is just classification. The non-php examples *should not* use the role="php" attribute-value. Currently only the PHP examples are hilghlited, and only in the offline new CHM version. But tagging examples with their types may open several possibilities in the future... Goba