Questions tagged [pre]

The

 element in HTML represents preformatted text. Text within this element is typically displayed in a non-proportional font exactly as it is laid out in the file. Whitespaces inside this element are displayed as typed. It is usually used for showing computer code or output.

The <pre> element in HTML represents preformatted text. Text within this element is typically displayed in a non-proportional font exactly as it is laid out in the file. Whitespaces inside this element are displayed as typed. It is usually used for showing computer code or output.

384 questions
0
votes
4 answers

Using symbols in
 tag

Normally to print symbols such as the forall symbol, you'd just use &forall, but this doesn't seem to work in pre blocks that literally print out "&forall".
&forall o in orders
What would be a workaround to this problem?
wonton
  • 7,568
  • 9
  • 56
  • 93
0
votes
1 answer
0
votes
1 answer

Multiple BR-tags will collapse into a single one when placed in PRE-tag in IE7

In IE7 multiple line breaks (using
or
) within a
 tag will cause IE7 to collapse the breaks into a single break. To demonstrate this you can use the following HTML code:

        
Yeti
  • 2,647
  • 2
  • 33
  • 37
0
votes
1 answer

expression engine / truncation - remove anything inside a
 tag

I'm using an expression engine field to post code samples using a
 element and [code] markup, but I'm also using this field as an excerpt. In the excerpt, I want to remove anything inside these pre elements (or stop, somehow, once it reaches…
mheavers
  • 29,530
  • 58
  • 194
  • 315
0
votes
2 answers

How to convert CSV datas in
 into HTML table using Javascript?

I have a HTML file. It has Pre-formatted text with CSV data in it.
1,2,3,4
5,6,7,8
9,0,1,2
3,4,5,6
How to extract this data and convert it into a HTML table using Javascript?
bharath119
  • 23
  • 1
  • 5
0
votes
2 answers

Making very simple html page cross-browser compatible with CSS

I have this "web-site" -> http://www.krlja-ustvari.hr It works 'perfect' in Google Chrome. By 'perfect' I mean that content is always 100% width and 100% height, overflown stuff is hidden and line breaks are made without
tags. That's exactly…
errata
  • 5,695
  • 10
  • 54
  • 99
0
votes
1 answer

Why won't Google Chrome autobreak?

I did something wrong in this document and I can´t figure what. I've not that much content yet. I'm building it for a WB. It's not working in Google Chrome but in Internet Explorer it is. http://privat.bahnhof.se/wb802226/tesing.html Could somebody…
Xweque
  • 605
  • 1
  • 9
  • 29
-1
votes
1 answer

How do i save a bool value in shared preferences with flutter?

I have been trying to save a bool value "DarkMode" in shared preferences but can't seem to succeed. The darkmode variable is used to change the app to darkmode. It will also be greatly appreciated if someone could post a very simple example of…
Steve
  • 103
  • 1
  • 2
  • 8
-1
votes
1 answer

html pre tag formatting not displaying properly in browsers

so i started learning html and i've come upon this tag it's supposed to reserve spaces/new lines and here is an image of the code https://prnt.sc/twqf1k but whenever i open it up in the browser it shows up like this https://prnt.sc/twqf8f now i…
iEvils
  • 1
-1
votes
1 answer

How can I use relational indent with pre tag in html without javascript?

I wrote this html
...something...
    abc{
      efg
    }
    
  
and browser show me this as contents of pre (absolute indent). abc{ efg } but what I want is this (relational indent…
invalid
  • 1,215
  • 4
  • 13
  • 30
-1
votes
1 answer

Bootstrap 4's media object with pre inside doesn't respect container's width

I placed media object inside bootstrap's column. If I put
...
with long strings of code into .media-body, whole media object goes outside column's borders. Here's fiddle: https://jsfiddle.net/crazypilot/8dyq4v7x/16/ Help me,…
Antonio
  • 822
  • 1
  • 10
  • 19
-1
votes
1 answer

JLabel does not wrap when using

I can successfully wrap normal HTML text in a JLabel. But when I use pre it doesn't seem to wrap. Here's what I have set the text in my JLabel to:
" + temp +  "
this same…
-1
votes
1 answer

Encoding problems while displaying file content in
 tag

So here is my problem. I have files that I display in tags. However, when the file contains special caracters like 'é', 'à' ... they are not prompted properly and are replaced by '?' . Retyping the caracters and saving the file in the web app solve…
Noémie
  • 7
  • 4
-1
votes
2 answers

How to use variable-width font in HTML
 field

I wish to display pre-formatted text as stored in a MySQL database but want to avoid displaying the text in the fixed-width font that
 imposes
Or am I mistaken that  imposes any particular font but merely defaults to fixed-width?
D.Hussey
  • 23
  • 3
-1
votes
1 answer

iText HtmlWorker Pre tag rendering issue

I am newbie to iText. I am trying convert html file to pdf.After conversion the contents inside the "pre tag" is not proper. If anybody come across this issue before please share your thought on this with the solution that you applied.
user1828741
  • 31
  • 1
  • 4
1 2 3
25
26