Log In     Register    

Off Topic
Anything else...
<<  Back To Forum

Topic text formatting examples

by Guest on 2023/11/06 11:17:53 PM    
Haven't found all the examples in one place, so making them here for reference purposes :

Examples from "Format Guide" :

 [b]bold[/b] :  this is 'BOLD' text "0123456789" ;:,.+-*/!"#$%&/()=? & : this is unprocessed, not 'BOLD' text "0123456789" ;:,.+-*/!"#$%&/()=?

 [i]italics[/i] this is 'ITALICS' text "0123456789" ;:,.+-*/!"#$%&/()=? 
& : this is unprocessed, not 'ITALICS' text "0123456789" ;:,.+-*/!"#$%&/()=?
 
 [s]strike-through[/s] this is 'STRIKE-TROUGH' text "0123456789" ;:,.+-*/!"#$%&/()=?
& : this is unprocessed, not 'STRIKE-TROUGH' text "0123456789" ;:,.+-*/!"#$%&/()=?

 [u]underline[/u] this is 'UNDERLINE' text "0123456789" ;:,.+-*/!"#$%&/()=?
& : this is unprocessed, not 'UNDERLINE' text "0123456789" ;:,.+-*/!"#$%&/()=?

 [code]unprocessed  <--- Already applied, so you can see brackets; otherwise, they are not visible.


LET's DO COMBINATIONS NOW (if it will work...) :

 [b]bold[/b] + [i]italics[/i] :
 this is 'BOLD + ITALICS' text "0123456789" ;:,.+-*/!"#$%&/()=?
Unprocessed :  [i][b] this is 'BOLD + ITALICS' text "0123456789" ;:,.+-*/!"#$%&/()=? [/b][/i]

 [b]bold[/b] + [i]italics[/i] + [s]strike-through[/s] :
 this is 'BOLD + ITALICS + STRIKE-TROUGH' text "0123456789" ;:,.+-*/!"#$%&/()=?
Unprocessed :  [s][i][b] this is 'BOLD + ITALICS + STRIKE-TROUGH' text "0123456789" ;:,.+-*/!"#$%&/()=? [/b][/i][/s] 

 [b]bold[/b] + [i]italics[/i] + [s]strike-through[/s]+ [u]underline[/u]
 this is 'BOLD + ITALICS + STRIKE-TROUGH + UNDERLINE' text "0123456789" ;:,.+-*/!"#$%&/()=? 
Unprocessed :  [u][s][i][b] this is 'BOLD + ITALICS + STRIKE-TROUGH + UNDERLINE' text "0123456789" ;:,.+-*/!"#$%&/()=? [/b][/i][/s][/u] 


 [codebox][/codebox]  
Let us see how this simple EXAMPLE text looks in 'codebox'.
 Let us see how this complex EXAMPLE text looks in 'codebox' with new line :
[u][s][i][b] this is 'BOLD + ITALICS + STRIKE-TROUGH + UNDERLINE' text "0123456789" ;:,.+-*/!"#$%&/()=? [/b][/i][/s][/u]
Unprocessed within "codebox" : [code] [u][s][i][b] this is 'BOLD + ITALICS + STRIKE-TROUGH + UNDERLINE' text "0123456789" ;:,.+-*/!"#$%&/()=? [/b][/i][/s][/u] [/code]

 [quote][/quote]
Let us see how this simple EXAMPLE text looks in 'quote'.

 Let us see how this complex EXAMPLE text looks in 'quote' with new line :
 this is 'BOLD + ITALICS + STRIKE-TROUGH + UNDERLINE' text "0123456789" ;:,.+-*/!"#$%&/()=? 
Unprocessed within "quote" :  [u][s][i][b] this is 'BOLD + ITALICS + STRIKE-TROUGH + UNDERLINE' text "0123456789" ;:,.+-*/!"#$%&/()=? [/b][/i][/s][/u] 
by Guest on 2023/11/07 12:28:51 AM    
Results / Conclusion :

 [code] [code]unprocessed[/code] [/code] <--- Already applied, so you can see brackets; otherwise, they are not visible. 
'Unprocessed' command code, I will be using parentheses instead of brackets to not break the formatting, '(code) (/code)' can't show '(/code)' within itself, but as you can see from above, 'codebox' can show '(/code)' within '(code) (/code)'.

Text line can't be simultaneously 'STRIKE-TROUGH' and 'UNDERLINE', so use one or the other.

[codebox][/codebox] changes all text font to monospace and text within 'codebox' that is within '(code) (/code)' doesn't change its shading nor is it differently formatted, but just presents format commands as plain text, disregarding its formatting nature altogether.
Also all BOLD, ITALICS, STRIKE-TROUGH and UNDERLINE codes have no effect within 'codebox', all text is uniform in font type.
Two 'codebox' examples were separated by one empty line in between them, and you can see how differently it does that separation compared to 'quote' examples, which are also separated by one empty line in between them, but as you can see, that spacing is much, much bigger.

Text put in [quote][/quote] code retains its additional text format manipulations by other codes, even the shading of '(code) (/code)' formatting is maintained.
Since the 'quote' empty line spacing is different from that between two 'codeboxes' examples, like mentioned above, let's make two consecutive 'codeboxes' and two 'quotes' without any empty line separating them :
Text line in codebox one.
Text line in codebox two.
 
Text line in quotes three.
Text line in quotes four.

And for the end, let's alternate them a bit without any empty line separation :
Text line in quotes one.
Text line in codebox two.

Text line in quotes three.
Text line in codebox four.
 

That's all, folks!
by Guest on 2024/02/18 10:57:23 AM    
There seem seems be a bug here.
 
I looks like you can't nest [code] tags within other [code] tags...
Like this : [code] [code] [/code] [/code] 

The nested closed code gets deleted.
by Guest on 2024/02/18 03:40:59 PM    
Oh, I figured it out... This is a JavaScript limitation; it doesn't properly process two of the same classes nested within each other. All online JS-based something-to-HTML converters are suffering from the same issue.
There is nothing we can do about that.

But this, as elsewhere mentioned, increase in space before the 'quote' text blocks is not an inherent JavaScript problem; it is a parser problem that adds  <br/> where it doesn't belong, before the 'quote' code. This thing should be fixable, since it's a parser rule issue.




This web site is powered by Super Simple Server