Re: Showing all spaces without using the
From: Nathan Sokalski (njsokalski_at_hotmail.com)
Date: 07/02/04
- Next message: Master: "Date and Currency"
- Previous message: Bullschmidt: "Re: [Fwd: Re: Refreshing without resubmitting]"
- In reply to: Jeff Cochran: "Re: Showing all spaces without using the "
- Next in thread: Jeff Cochran: "Re: Showing all spaces without using the "
- Reply: Jeff Cochran: "Re: Showing all spaces without using the "
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 2 Jul 2004 02:28:12 -0400
What about making long lines wrap around? Some lines in code (such as HTML
tags with a lot of attributes) will be too long to fit on one line, but the
PRE tag prevents text wrap. Based on the website I usually use as a
reference, the width attribute (which sets the maximum characters in a line)
is deprecated, but it does not state what technology is used in it's place.
I can use it, but I prefer not to use deprecated attributes. Any ideas?
(I apologize for sending to multiple newsgroups. I tend to do that because
some groups are rarely used, I don't always know which group is the precise
one I want, and I don't want to subscribe to ALL newsgroups. I will do my
best to lessen this habit)
-- Nathan Sokalski njsokalski@hotmail.com www.nathansokalski.com "Jeff Cochran" <jeff.nospam@zina.com> wrote in message news:40e7bd42.564365524@msnews.microsoft.com... > On Thu, 1 Jul 2004 19:59:51 -0400, "Nathan Sokalski" > <njsokalski@hotmail.com> wrote: > > >I am using ASP to read code from a text file that I am displaying on my > >page. Because I do not want the code from the text file to be executed, I > >used the Server.HTMLEncode() method to display it as it is in the file. > >However, the spaces used to indent lines is still removed by the browser. I > >cannot use VBScript's replace function to replace all spaces with > >because that would replace all spaces, including ones that I do not want > >replaced as well as majorly increasing the size of my file. Is there any > >way to display the spaces used to indent the lines without manually writing > >a function to do it? > > Yes. First, don't post to so many groups. This isn't DHTML or an ASP > component. It doesn't involve the HTML object model, and isn't > related to the SDK's. It's not even server side, so the ASP group is > also technically out. In fact, none of the groups you selected are > actually appropriate. > > Look at the <pre></pre> tags in HTML. Google for a reference if you > don't understand them, or repost in a HTML group. > > Jeff
- Next message: Master: "Date and Currency"
- Previous message: Bullschmidt: "Re: [Fwd: Re: Refreshing without resubmitting]"
- In reply to: Jeff Cochran: "Re: Showing all spaces without using the "
- Next in thread: Jeff Cochran: "Re: Showing all spaces without using the "
- Reply: Jeff Cochran: "Re: Showing all spaces without using the "
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|