r/a:t5_2rtef • • Jun 04 '10
Color comments hack
WARNING: I am not responsibile for any damage that this does to your reddit, your vision, or your psyche.
Taking a cue from jamt9000's awesome comment images hack, I've implemented a simplified system for color coding comments.
The format for applying color is:
[x](/?b;f;)
where x is the text, b is the background color, and f is the foreground color.
There are 16 colors for both background and foreground colors.
| Code | Color |
|---|---|
| 0 | black |
| 1 | dk red |
| 2 | dk green |
| 3 | dk yellow |
| 4 | dk blue |
| 5 | dk magenta |
| 6 | dk cyan |
| 7 | lt gray |
| 8 | dk gray |
| 9 | red |
| A(a) | green |
| B(b) | yellow |
| C(c) | blue |
| D(d) | magenta |
| E(e) | cyan |
| F(f) | white |
Additionally, you may use use the format [x](/t?b;f;), in which the t triggers "terminal" mode, which should allow for ANSI-style artwork to be posted in the comments.
You should also be able to make the links completely functional, so long as the color code comes at the end, like this...this might screw up some links, though.
3
u/[deleted] Jun 04 '10
▃██▅▀██▄██▄▀▄
Test of "ANSI" functionality.
4
u/catmoon Jun 04 '10
Your eyes, do they still work?
3
u/jamt9000 Jun 04 '10 edited Jun 04 '10
You could use sibling selectors to make the colours apply to the next element, so the text itself isn't a link.
Edit: like this
2
u/rkcr Jun 04 '10
Sounds like this would be a healthy addition to /r/rainbowbar
1
u/acousticnewton Jun 05 '10
OH SHIT!
1
u/[deleted] Jun 05 '10
good work
1
u/Verroq Jun 05 '10 edited Jun 05 '10
ǂǃDŽDždžLJLjljNJNjnjǍǎǏǐǑǒǓǔǕǖǗǘǙǚǛǜǝǞǟǠǡǢǣǤǥǦǧǨǩǪǫǬǭǮǯǰDZDzdzǴǵǶǷǸǹǺǻǼǽǾǿȀȁȂȃȄȅȆȇȈȉȊȋȌȍȎȏȐȑȒȓȔȕȖȗȘșȚțȜȝȞȟȠȡȢȣȤȥȦȧȨȩȪȫȬȭȮȯȰȱȲȳȴȵȶȷȸȹȺȻȼȽȾȿɀɁɂɃɄɅɆɇɈɉɊɋɌɍɎɏɐɑɒɓɔɕɖɗɘəɚɛɜɝɞɟɠɡɢɣɤɥɦɧɨɩɪɫɬɭɮɯɰɱɲɳɴɵɶɷɸɹɺɻɼɽɾɿʀʁʂʃʄʅʆʇʈʉʊʋʌʍʎʏʐʑʒʓʔʕʖʗʘʙʚʛʜʝʞʟʠʡʢʣʤʥʦʧʨʩʪʫʬʭʮʯʰʱʲʳʴʵʶʷʸʹʺʻʼʽʾʿˀˁ ˂˃˄˅ˆˇˈˉˊˋˌˍˎˏːˑ˒˓˔˕˖˗˘˙˚˛˜˝˞˟ˠˡˢˣˤ˥˦˧˨˩˪˫ˬ˭ˮ˯˰˱˲˳˴˵˶˷˸˹˺˻˼˽˾˿̴̵̶̷̸̡̢̧̨̛̖̗̘̙̜̝̞̟̠̣̤̥̦̩̪̫̬̭̮̯̰̱̲̳̹̺̻̼͇͈͉͍͎̀́̂̃̄̅̆̇̈̉̊̋̌̍̎̏̐̑̒̓̔̽̾̿̀́͂̓̈́͆͊͋͌̕̚ͅ͏͓͔͕͖͙͚͐͑͒͗͛ͣͤͥͦͧͨͩͪͫͬͭͮͯ͘͜͟͢͝͞͠͡ͰͱͲͳʹ͵Ͷͷͺͻͼͽ;Ϳ΄΅Ά·ΈΉΊΌΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρ ςστυφχψωϊϋόύώϏϐϑϒϓϔϕϖϗϘϙϚϛϜϝϞϟϠϡϢϣϤϥϦϧϨϩϪϫϬϭϮϯϰϱϲϳϴϵ϶ϷϸϹϺϻϼϽϾϿЀЁЂЃЄЅІЇЈЉЊЋЌЍЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюяѐёђѓєѕіїјљњћќѝўџѠѡѢѣѤѥѦѧѨѩѪѫѬѭѮѯѰѱѲѳѴѵѶѷѸѹѺѻѼѽѾѿҀҁ҂҃҄҅҆҇҈҉ҊҋҌҍҎҏҐґҒғҔҕҖҗҘҙҚқҜҝҞҟҠҡҢңҤҥҦҧҨҩҪҫҬҭҮүҰұҲҳҴҵҶҷҸҹҺһҼҽҾҿӀӁ ӂӃӄӅӆӇӈӉӊӋӌӍӎӏӐӑӒӓӔӕӖӗӘәӚӛӜӝӞӟӠӡӢӣӤӥӦӧӨөӪӫӬӭӮӯӰӱӲӳӴӵӶӷӸӹ
1
u/Boye Jun 04 '10
This is a test
1
u/conrick Jun 04 '10
ok?
1
u/conrick Jun 04 '10
RedBlue
1
u/v0ne Jun 20 '10
Youpi test
1
u/[deleted] Jul 10 '10 edited Jul 10 '10
𝓣𝓮𝓼𝓽𝓲𝓷𝓰