Rosetta Code:Village Pump/Syntax highlighting: Difference between revisions
Content added Content deleted
(Dotted blue border.) |
m (→ALGOL 68, AutoGeSHi: Unicode characters to HTML entity codes, for better compat) |
||
Line 673: | Line 673: | ||
BTW: The operators: '≤' and '≥' can be done in html as '≤' and '≥' eg '≤' and '≥'; |
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: ℵ, " |
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: ℵ, "≮", "≯" and ℒ http://en.wikipedia.org/wiki/Van_Wijngaarden_grammar -->. But no HTML entities for □, ○, ⎩, ⎧ (Unicode 5.1) and "⏨" (decimal exponentiation - Unicode 5.2). |
||
Detecting all the HTML entity defs (http://php.net/manual/en/function.htmlentities.php) is probably the easiest way of doing things. |
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: ≡, " |
Trivia: Standard Algol 60 required sup: ⊃, equiv: ≡, "␣" and "⏨" (decimal exponentiation - Unicode 5.2); The Soviet Algol compiler - used for the Buran Space Shuttle reentry software - even had the character: loz: ◊, together with support for °, ∅, ± and ∇ ... I could never figure out what this [http://en.wikipedia.org/wiki/Behenian_fixed_stars#Table_of_Behenian_Stars diamond ◊] character was used for!!! The Germans also included the unusual "<font size=5>᛭</font>" (iron/runic cross), I'm not convinced it was used for multiplication. Probably something used for something mundane like printing train time tables, you would have to be German to understand. :-) |
||
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. |
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. |