Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet thread from rec.arts.ascii, started 1 Sep 1995.
 _   _                     _        _             _     _           
| | | |___  ___ _ __   ___| |_     / \   _ __ ___| |__ (_)_   _____ 
| | | / __|/ _ \ '_ \ / _ \ __|   / _ \ | '__/ __| '_ \| \ \ / / _ \
| |_| \__ \  __/ | | |  __/ |_   / ___ \| | | (__| | | | |\ V /  __/
 \___/|___/\___|_| |_|\___|\__| /_/   \_\_|  \___|_| |_|_| \_/ \___|
Answer: HTMLizing ASCII Art

Answer: HTMLizing ASCII Art

rec.arts.ascii · 3 messages · 1 Sep 1995 - 4 Sep 1995
Mike Kershaw <mke...@dgsys.com> ASCII art 1 Sep 1995 00:00 · permalink · report
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 &quot
		           '<' to &lt
			   '>' to &gt
                           '&' to &amp

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


                                
                                   

Greg Berigan <gbe...@cse.unl.edu> ASCII art 4 Sep 1995 00:00 · permalink · report
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

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.

Help classify this post