Re: Showing all spaces without using the  

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Nathan Sokalski (njsokalski_at_hotmail.com)
Date: 07/02/04


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 &nbsp;
> >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


Relevant Pages

  • Re: ASP.Net and Netscape Problem
    ... Opera and a few other odd browsers. ... I went back and checked the HTML code that was produced and noted that I had ... two tags. ... page the browser was trying to display. ...
    (microsoft.public.dotnet.framework.aspnet)
  • where to place the javascript in html page
    ... I m getting annoying display problem when placing javascript tags in a html page. ... If I placed the script tags at the beginning of the html page, I can have the Draggale Layer shown and movable by the mouse, but the entired page will not read the style.css file (as I found the font displayed very ugly); If I placed the script tags between the tags, the Draggable Layer is movable, but the font are displayed correctly. ...
    (comp.lang.javascript)
  • Re: [PHP] HTML tags in MySQL
    ... I have a client who over the years thought it was great to enter html ... tags directly into his database via his CMS for display in his web ... not all the tags are well formed and some are ... the event you want to display it as HTML you can, ...
    (php.general)
  • Re: where to place the javascript in html page
    ... I m getting annoying display problem when placing javascript tags in ... a html page before anything start? ... The above java script placed at the start of the html page will make ...
    (comp.lang.javascript)
  • Re: Am I on the right track here?
    ... in a desktop app, I'd think in terms of a rectangle in which I was ... going to display all the data for a record. ... Its a bit more fuzzy with HTML because, effectively, the HTML ... where to wrap lines etc. ...
    (comp.lang.php)