Original Usenet thread from rec.arts.ascii, started 1 Sep 1995.
Answer: HTMLizing ASCII Art
rec.arts.ascii
· 3 messages · 1 Sep 1995 - 4 Sep 1995
Karen Litzau (kli...@nyx10.cs.du.edu) wrote: > Subject says it all. I've been attempting to HTMLize some ASCII art, but > it's not working. I enclose the art within <pre> tags, but when i try to > view it in lynx, it comes out all messed up. *grrr* Any suggestions? > Post here or reply to kli...@nyx10.cs.du.edu. If you have a pic for GUI browsers to go along with it, this should work. <pre><IMG SRC="Your_pic.gif" ALT=" Whatever ASCII Art"></pre> mike -- ) \ / ( /|\ )\_/( /|\ / | \ (/\|/\) / | \ ___________________/__|__o____\*|*/___o__|__\________________________ / Mike Kershaw \|/ / \ | ------------- v Isulkian, azhita. |____| | mke...@dgs.dgsys.com --Swift wind, Dragonfriend | | Dra...@bitsy.hollyfeld.org | | Dra...@aslan.hollyfeld.org | /_________________________________________________________________/ | \_________________________________________________________________\__/ | /\ / Never annoy a dragon \ /\ | | / V For thou art crunchy V \ | |/ And good tasting. \|
In article <41v3oc$r8...@news.dgsys.com> mke...@dgsys.com (Mike Kershaw) writes: >Karen Litzau (kli...@nyx10.cs.du.edu) wrote: >> Subject says it all. I've been attempting to HTMLize some ASCII art, but >> it's not working. I enclose the art within <pre> tags, but when i try to >> view it in lynx, it comes out all messed up. *grrr* Any suggestions? >If you have a pic for GUI browsers to go along with it, this should work. ><pre><IMG SRC="Your_pic.gif" ALT=" >Whatever ASCII Art"></pre> >mike [sig deleted] I tried doing the same thing. 2 solutions: a) have a line like <a href="asciipic.asc">link to pic</a> which will load up a seperate file that is not interpreted as HTML b) include ascii art in html page. put pic between <pre> and </pre>, but you ALSO have to change all '"' (thats qoute characters) to " '<' to < '>' to > '&' to & takes a while but it should fix your problem. hope that helps, if not try looking at the source for my homepage (in sig) cheers - Tom ....... ....::::::::::::. .:::::::::' `:' .::::' ::: . . .:::` ::: .. ::. .:: .::` .::' ,::::::. ::::. .::: May all your genes ::: .::' `::: ::`::::':: be recessive so ::: ::: ::: ::. :: .:: your children have ::: :::.:::` ::' `:: the good fortune . ::: `:::` :' `: to be not like you `:::::.:' `::::` @Halls1.cc.monash.edu.au `:;` http://yoyo.cc.monash.edu.au/~madmick/ `: What makes you think those are my opinions? "We decided to make it female so it would be more docile and controllable," "Well, I guess you guys don't get out much do you?" - s p e c i e s
to...@halls1.cc.monash.edu.au (Tom Paton) wrote: >mke...@dgsys.com (Mike Kershaw) writes: >>Karen Litzau (kli...@nyx10.cs.du.edu) wrote: >>>Subject says it all. I've been attempting to HTMLize some ASCII art, but >>>it's not working. I enclose the art within <pre> tags, but when i try to >>>view it in lynx, it comes out all messed up. *grrr* Any suggestions? >>If you have a pic for GUI browsers to go along with it, this should work. >><pre><IMG SRC="Your_pic.gif" ALT=" >>Whatever ASCII Art"></pre> >I tried doing the same thing. >2 solutions: > a) have a line like <a href="asciipic.asc">link to pic</a> > which will load up a seperate file that is not interpreted > as HTML > > b) include ascii art in html page. > put pic between <pre> and </pre>, but you ALSO have to > change all > '"' (thats qoute characters) to " > '<' to < > '>' to > > '&' to & In my experience, ">" isn't necessary. Also, remember to include the required semicolon after each of those, otherwise some browsers may not recognize them or simply eat the next character. Also, if you include ASCII art in the ALT="" tag of an <IMG> statement, you cannot use any of those & commands and so you also cannot use " or > either in your artwork. For that situation I recommend replacing them with ' or ) respectively. -- ----' http://cse.unl.edu/~gberigan/ (Greg Berigan) ------, ,-|-, "Some say he's the devil himself." "I heard he was _ ----' '-' a giant chicken!" -- Highlander Boo: The Chickening d b CC
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
,~~--~~-. + | |\ || |~ |`,/-\ *\_) \_) `-'
__
\ \ _ _
\**\ ___\/ \
X*#####*+^^\_\
o/\ \
\__\ .------------. |\\//\\//\\//| |//\\//\\//\\| |\\//\\//\\//| |//\\//\\//\\| '------------'
_______ /` _____ `\;, /__(^===^)__\';, / ::: \ ,; | ::: | ,;' '._______.'`jgs
_ _ (o)(o)--. \../ ( )hjw m\/m--m'`--.
_ _
/` \/ `\_ _
\ /` \/ `\
'. .\ /
\/ '. .'
\/jgs Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this thread.
These messages were posted publicly to the newsgroup
rec.arts.ascii
in 1995 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.