Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from rec.arts.ascii, 4 Sep 1995.
Talk: HTMLizing ASCII Art

Talk: HTMLizing ASCII Art

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 &quot
>		           '<' to &lt
>			   '>' to &gt
>                           '&' to &amp

In my experience, "&gt;" 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

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fbb9d,d5efc27028193ad9
X-Google-Attributes: gidfbb9d,public
From: gbe...@cse.unl.edu (Greg Berigan)
Subject: Talk: HTMLizing ASCII Art
Date: 1995/09/04
Message-ID: <42givv$4r...@news.wwa.com>#1/1
X-Deja-AN: 109524071
approved: bob...@wwa.com
sender: bob...@miso.wwa.com
references: <427o0g$31...@news.wwa.com>
organization: Dept of CS&E -- University of Nebraska-Lincoln
newsgroups: rec.arts.ascii
About this message. This message was posted publicly to the newsgroup rec.arts.ascii in 1995 and is 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 the author? 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.

Help classify this post