Message box "CP"

Status
Not open for further replies.
Yes, I know perfectly the ASCII code as I continue using DOS. But whta I want to do is:
a
x = -----
b

but the spaces preceding the second term are usually eliminated.

This post while editing was...
 

Attachments

  • div.gif
    div.gif
    20.5 KB · Views: 99
Last edited:
You'll have to play around with spacing. These are the code tags. Use Preview to see how it looks.

My post above looks like this:
 

Attachments

  • Capture2.PNG
    Capture2.PNG
    17.3 KB · Views: 98
  • Capture3.PNG
    Capture3.PNG
    109.9 KB · Views: 97
> the spaces preceding the second term are usually eliminated.
> This post while editing was...


The spaces are IN there.

Use View Code. See snap below.

The problem is in the *reader* end. Most web browsers crunch white-space. This is so Standard, that there is a special space-character to force space. (I am not sure it is available in the forum editor?)

IAC: CODE tag works and is not too ugly. Code programmers obsess about 4 or 8 space indent (or tab), so coded the CODE tag to preserve spaces.
 

Attachments

  • Osvaldo-code.gif
    Osvaldo-code.gif
    4.1 KB · Views: 91
Osvaldo, I see know what's your problem and somewhat misinterpreted your issue, I thought you were initially pasting from some math program, which seems to handle math symbols more graphically and fails when copy-pasting from does math programs, but PRR's post explains it all, the culprit lies in how the browser interpret the blank spaces.

however, the most common and sure way is to write it as:

X = a / b

instead of...

a
X = ----
b

which consumes slightly more keyboard work. 🙂
 
Osvaldo, I see know what's your problem and somewhat misinterpreted your issue, I thought you were initially pasting from some math program, which seems to handle math symbols more graphically and fails when copy-pasting from does math programs, but PRR's post explains it all, the culprit lies in how the browser interpret the blank spaces.

however, the most common and sure way is to write it as:

X = a / b

instead of...

a
X = ----
b

which consumes slightly more keyboard work. 🙂

OK, I gave a simple example, but there are some situations in which more complex formulae are needed. In fact , in previous posts I didn't need to use complex code texts.
 
Status
Not open for further replies.