Shop OBEX P1 Docs P2 Docs Learn Events
Strike Out — Parallax Forums

Strike Out

Duane DegnDuane Degn Posts: 10,588
edited 2012-01-23 08:57 in General Discussion
[HTML]<st>cheap</st>[/HTML] expensive

[strikeout]cheap[/strikeout] expensive

cheap expensive

(subscript) and expensive

<s>cheap</s> expensive

cheap{/s] expensive This is what strike out looks like in editor window after "Preview Post".

cheap expensive ' this didn't work the first time. Only after added the next line.

[cheap [ expensive

cheap expensive adding a space after "s" cheap expensive

I had hit "Preview Post" twice to see the above strike out. The spaces didn't work to preserve original text. I'll use s-brackets to show original.

cheap expensive original: [s}cheap [/s} expensive

Again, I had hit "Preview Post" twice to see the above strike out.

cheap expensive original (using "O" instead of "0": &#O91;s]cheap &#O91;s] expensive

Darn, I forgot the "/" in the closing code.

cheap expensive original (using "O" instead of "0": &#O91;s]cheap &#O91;/s] expensive

That seemed to work. I still had to hit "Preview Post" twice to see the above strike out.

In summery, to stikeout "cheap" use following code:

&#O91;s]cheap &#O91;/s]

Except you'll need to use a zero instead of the letter "O" in the above code. You'll also need to press the "Preview Post" button twice.

Edit: I learned this from Phil here:

http://forums.parallax.com/showthread.php?125405-Missing-Buttons

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2012-01-23 08:44
    Duane,

    I'm afraid my "example" has come via the latest forum update, rather than anything I intended. It used to be that, in order to show raw BBcode, you had to use the ampersand notation to keep the software from interpreting it as BBcode. Now, when you enter the ampersand notation in the editor, the software converts it to its equivalent character. Previewing again, interprets the BBcode.

    To keep BBocdes from being interpreted, use the [noparse][noparse] tag and its complementary closing tag. BBcodes placed between these tags will be displayed as-is, without being invoked. As far as strike-throughs go, the pair works fine.[/noparse]

    -Phil
  • Duane DegnDuane Degn Posts: 10,588
    edited 2012-01-23 08:54
    Thanks Phil,

    I'll try this again.

    I thought I should be able to use this for strikeout:
    strike this

    If it works, and you can't tell what I typed, here it is with noparse tags.
    [noparse]strike this[/noparse]

    I see that ASCII #91 is "[". Which makes the above numbers start to make sense.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2012-01-23 08:57
    Now I know why it didn't work in my first post.

    I make the same mistake as our friend Paul and used a s-bracket instead of a square bracket (in my attempt after using <> as brackets). Now I'm not nearly as confused (at least about this issue).

    Thanks Phil.
Sign In or Register to comment.