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?
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?
Kurt LangAug 27, 2016 4:18 PM in response to apples'npears
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:
Thanks so much Kurt for your patience and invaluable help. :-)
First - many thanks for taking the trouble to go to that site.
So...ok...I think (?) I did what you suggested.
Here are 2 screen shots. The "preview" at the top of each shows how they'd
look if I'd gone ahead and hit 'post'.
Neither shows any possibility of doing a strike through.
But maybe I didn't do it right?
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.
I'm afraid not - I removed my answer because I decided it didn't properly address the problem - you obviously caught it in the brief period before I did so. As far as I can see Safari provides no facility for any sort of formatting in text entry fields, but leaves it to the site in question.
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...???)
In the older version of Pages it's menu Format>Font>Strikethrough so possibly the current version is the same. However I would think it possible that when you paste the text back into the entry field it will lose the formatting again (though you can do it here). You can only try.
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.
Thanks again Roger....so i figured out how to get it set inc Pages (even assigned the f7 key to it)...but alas, when I paste the text back to forum...the formatting disappears and am back where i began.
Lots of posters use it in that forum...but I suspect they're either using PCs or Word for Mac (which i don't have)...
You've completely lost me...
Can you be more specific....for example, let's say the existing text was:
"We aim to meet up with you after lunch and will sound the horn when we get there once we're there."
How would I do the 2 strike thus?
Thanks
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
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.
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.
Typing strike-thru when using Safari