Typing strike-thru when using Safari

When posting a comment in an online forum when using Safari (OSX 10.11.6) - is there a way to type a strike-thru over existing text?

Posted on Aug 26, 2016 1:39 PM

Reply
26 replies

Aug 27, 2016 5:16 PM in response to Kurt Lang

User uploaded fileKurt LangAug 27, 2016 4:18 PM in response to apples'npears

User uploaded fileLevel 8 (37,589 points)


Aug 27, 2016 4:18 PM Re: Typing strike-thru when using Safariin response to apples'npears

"Okay, like these forums, it's ignoring HTML commands typed into the editor with the correct < > symbols. If you didn't actually submit the post, you can't prove whether or not either of those will work until you do. It doesn't change simply while typing."


Am aware of that. That's why I clicked that forum's 'Preview' link - and, as I mentioned in my post, included the previews in the screen shots. The previews always shows how the message will actually look once it's posted.


However, like a lot of forum software, notice it used brackets instead. It's now expecting you to know the HTML tag you want to replace the letters HTML with. Change those both to strike so it reads:


[strike]Type anything & Highlight[/strike]


and post the response."


Whoa!!!

Genius!!!!

You are BRILLIANT. Look ....3 strikes and I'm OUT e.g. IN...see the 'Preview' above the Reply to Thread box:


User uploaded file

Thanks so much Kurt for your patience and invaluable help. :-)

Aug 27, 2016 5:50 PM in response to Kurt Lang

Kurt,


There is two-way strikethrough text copy/paste capability between Pages v5.6.2 and the ASC editor on behalf of Safari.


If one starts in Pages, the strikethrough text is copied to the clipboard as Cocoa RTF text. When pasted in Safari, it uses Cocoa methods to convert the RTF into HTML/CSS. In reverse, Safari will convert HTML/CSS into RTF on the clipboard, and Pages uses that formatting to paste strikethough content back into itself. Its all in the Introduction to Attributed String Programming Guide.


I have a tool that dumps the raw RTF from the clipboard, and what Safari pasted there was the RTF to strikethrough the appropriate text.

Aug 26, 2016 3:15 PM in response to Roger Wilmut1

ok....bummer

Then I wonder:

If I copy and paste the existing text into Pages, presumably Pages should allow for a text strike-thru (I haven't been able to figure how how to configure it). If (???) I'm able to do that...then I could copy and paste back into the forum.


Will I have to post this query in Pages community? (don't know if there is one...???)

Aug 26, 2016 4:02 PM in response to apples'npears

If the site you show supports entering HTML, you would to it with the strike tag. Like the following (tag purposely misspelled so it shows):


<stirke>Shows text with a strikethrough line.</stirke>


Let's see what happens if I type in the tags correctly rather than using the supplied button.


<strike>Shows text with a striketrough line.</strike>


Edit: Ah. Nothing. The strike tag is obsolete in HTML5. This site uses a CSS span command for it.

Aug 26, 2016 11:34 PM in response to apples'npears

VikingOSX is suggesting you use html coding to provide the strikethrough. Some text entry fields are likely to display the code instead of rendering but if you want to try it it's


We aim to meet up with you <span style="text-decoration:line-through">after lunch</span> and will sound the horn <span style="text-decoration:line-through">when we get there</span> once we're there

Aug 27, 2016 8:36 AM in response to Roger Wilmut1

We aim to meet up with you <span style="text-decoration:line-through">after lunch</span> and will sound the horn <span style="text-decoration:line-through">when we get there</span> once we're there.

We aim to meet up with you after lunch and will sound the horn when we get there once we're there.


Interesting. If I copy/paste your text in, Jive automatically breaks it apart so it won't be treated as HTML. Very nice actually since it allows you to type in HTML code without it being displayed as it normally would.


If I click the HTML button and paste in the exact same line, then it does what you expect, as shown just above. Let's see if it does that with the strike tag.


Test of strike tag.


Aha! So strike still does work here. You just have to enter it while in HTML editing mode.


Edit: Correction. No it doesn't (technically). Jive changed strike to the CSS line-through command.

Aug 27, 2016 10:17 AM in response to apples'npears

Are you clear about using the span/CSS styling while in HTML mode within the ASC editor?


There is a Strike-through menu item (Format : Font : Strikethrough) in Pages v5.6.2. When you apply this to text in that version of Pages, it will copy and paste (not Paste and Match Style) into the Safari ASC editor session using the span/CSS text-decoration combination that I suggested elsewhere in this post.


Pages is web agnostic, and is sending attributed text (the strike-through) onto the clipboard, and Safari is transforming that attributed text into the appropriate HTML/CSS to paste it into the ASC editor session. Copying strike-through content using the span/text-decoration combination via Safari, and pasting in Pages reverses this process, and Pages will image that attributed text. This may be unique to the Safari/Pages pair sharing Apple specific clipboard formatting.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Typing strike-thru when using Safari

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.