Strikethrough (or strikeout) is a typographic text decoration used to indicate cancelled words or sentences. A strikethrough consists of a horizontal line crossing text through the center.
Questions tagged [strikethrough]
183 questions
147
votes
18 answers
Is there an easy way to strike through text in an app widget?
I was wondering if there is an easy way to strike text within an app widget in Android. In a normal activity, it is pretty easy, using textview flags:
textView.setPaintFlags(textView.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
But since in an…
![](../../users/profiles/316477.webp)
Antonio
- 2,938
- 2
- 20
- 14
134
votes
20 answers
How can I create a UILabel with strikethrough text?
I want to create a UILabel in which the text is like this
How can I do this? When the text is small, the line should also be small.
![](../../users/profiles/1702515.webp)
Dev
- 3,655
- 10
- 36
- 62
109
votes
11 answers
How to strike through obliquely with css
I need something like this:
How can achieve this with css? I know that one way is use background image, but can I achieve this only with css without any image?
![](../../users/profiles/1990924.webp)
Jaroslav Klimčík
- 3,933
- 12
- 31
- 49
78
votes
11 answers
How to change the strike-out / line-through thickness in CSS?
I'm using the text-decoration: line-through in CSS, but I can't seem to find any way to vary the line thickness without inelegant hacks like
or image overlays. Is there any elegant way to specify the thickness of a line-through?
or image overlays. Is there any elegant way to specify the thickness of a line-through?
![](../../users/profiles/10776.webp)
1077
- 1,208
- 1
- 10
- 9
61
votes
9 answers
Linethrough/strikethrough a whole HTML table row
After some research, I couldn't find an answer to this question. There was this but it didn't really answer my question. I would like to "strikethrough" a complete HTML table row in CSS, not just the text in it. Is it at all possible? From the…
![](../../users/profiles/564163.webp)
Mathieu M-Gosselin
- 1,158
- 1
- 12
- 17
49
votes
8 answers
ReST strikethrough
Is it possible to strike text through in Restructured Text?
Something that for example renders as a tag when converted to HTML, like:
ReSTructuredText
![](../../users/profiles/277113.webp)
gozzilli
- 6,931
- 6
- 49
- 80
42
votes
4 answers
Removing Strikethrough from TextView
I'm using this line below in order to set a strikethrough on my TextView:
tv.setPaintFlags(tv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
However later on in the Fragment, if they click the TextView again, I would like the strikethrough to be…
![](../../users/profiles/1150311.webp)
edwoollard
- 11,875
- 6
- 38
- 69
38
votes
4 answers
How to strike out inside LaTeX equations?
Please see the snippet below and tell me how can I achieve the same strike-out effect as in the main text. I am using the version of LaTeX from the latest Ubuntu repositories.
\documentclass{article}
\usepackage{ulem}
\begin{document}
The sout tag…
![](../../users/profiles/107349.webp)
Aamir
- 2,872
- 5
- 24
- 28
31
votes
3 answers
strikethrough code in markdown on github
I am talking about github markdown here, for files like README.md.
Question:
Is it possible to strikethrough a complete code block in markdown on github?
I know how to mark text as a block of code
this is
multiline code
and
this
this
also
by…
![](../../users/profiles/4790497.webp)
rocksteady
- 1,845
- 3
- 20
- 36
25
votes
5 answers
CSS: Line-through with a color different from the text color?
I’d like to have gray text with a red strike-through, but this style doesn’t work:
color: #a0a0a0;
text-decoration: line-through 3px red;
What am I doing wrong?
![](../../users/profiles/67063.webp)
Tony the Pony
- 37,471
- 63
- 170
- 273
20
votes
3 answers
Strike through plain text with unicode characters?
Is it possible to strike through unwanted revised words in your code comments? Since developers still code in the dark ages a simpler time of plain text where text cannot be formatted using hidden identifiers, the only way to accomplish this is with…
![](../../users/profiles/463304.webp)
700 Software
- 77,509
- 74
- 213
- 324
17
votes
3 answers
How to do strikethrough in a reStructuredText file hosted on GitHub?
I am converting a README.md file to README.rst. The reason is, I am going to make a package available to PyPi. I am forced to use .rst.
My conversion is nearly complete, but I have a strikethrough line in my markdown file, e.g.:
~~This text is…
![](../../users/profiles/939986.webp)
Santosh Kumar
- 22,275
- 18
- 59
- 100
15
votes
5 answers
Intellij idea deprecated no strikeout/strikethrough
I'm using IntelliJ idea v12. When I import a project, there shows the strikeout/strikethrough line on the method which has the annotation @Deprecated, but I use alt+enter and disable. So, how can I re-active this feature? Thanks! I want to display…
![](../../users/profiles/2606279.webp)
Awakening
- 2,901
- 6
- 28
- 49
14
votes
0 answers
Is there anyway to do "strikethrough" on a text file in Sublime?
I like to make text files with Sublime and use them as daily-reminder lists. I would like to be able to strike a line through the things I've completed versus erase them. Is there any easy way to do this on Sublime?
![](../../users/profiles/8960783.webp)
secretagentmango
- 393
- 1
- 6
- 15