azawawi / farabi6

Experimental in-browser Perl 6 Editor
Artistic License 2.0
14 stars 12 forks source link

interpret ansi escape codes for coloring in the output #24

Closed timo closed 9 years ago

timo commented 9 years ago

especially error messages have these. and especially if you're a beginner, you may end up seeing many error messages :)

azawawi commented 9 years ago

For reference only, http://ascii-table.com/ansi-escape-sequences.php

Code Mirror overlays can be used to highlight stuff http://codemirror.net/demo/mustache.html

azawawi commented 9 years ago

Initial error message ANSI sequence implementation added in https://github.com/azawawi/farabi6/commit/f024e83b9d53af01138e63d0b31f587718c1c051. Please review.

azawawi commented 9 years ago

Fixed with https://github.com/azawawi/farabi6/commit/ad8612821d571163510b2f85b7de24c541b47c4b

See a screenshot of it in http://img.vim-cn.com/6b/55f3f2a04aec25a1eb50818fe641a36e419766.png

Thanks for the idea :+1: