Anonymous user
Rosetta Code:Village Pump/Syntax highlighting: Difference between revisions
Rosetta Code:Village Pump/Syntax highlighting (view source)
Revision as of 16:24, 2 February 2012
, 12 years ago→ALGOL 68, AutoGeSHi: Unicode characters to HTML entity codes, for better compat
(Dotted blue border.) |
m (→ALGOL 68, AutoGeSHi: Unicode characters to HTML entity codes, for better compat) |
||
Line 673:
BTW: The operators: '≤' and '≥' can be done in html as '≤' and '≥' eg '≤' and '≥';
There are a few of others: ne: ≠, cent: ¢ pound: £ deg: °, and: ∧, or: ∨, not: ¬, lceil: ⌈, lfloor: ⌊, times: ×, divide: ÷ larr: ←, rarr: →, uarr: ↑, darr: ↓, and perp: ⊥ <!-- The Algol 68 Report used alefsym: ℵ, "
Detecting all the HTML entity defs (http://php.net/manual/en/function.htmlentities.php) is probably the easiest way of doing things.
Trivia: Standard Algol 60 required sup: ⊃, equiv: ≡, "
More Trivia: Most of the HTML entities appear to have arrived via Adobe fonts from an IBM Selectric typewriter font ball that was popular prior to ASCII 69 becoming a mandated US standard. Some of the HTML entities are fairly weird.
|