Questions tagged [strikethrough]

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.

199 questions
162
votes
21 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…
Antonio
  • 3,128
  • 2
  • 22
  • 14
145
votes
21 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.
Dev
  • 3,885
  • 10
  • 39
  • 65
125
votes
12 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?
Jaroslav Klimčík
  • 4,548
  • 12
  • 39
  • 58
85
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?
1077
  • 1,318
  • 1
  • 10
  • 9
67
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…
Mathieu M-Gosselin
  • 1,225
  • 1
  • 13
  • 17
54
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
gozzilli
  • 8,089
  • 11
  • 56
  • 87
45
votes
4 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…
rocksteady
  • 2,320
  • 5
  • 24
  • 40
44
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…
edwoollard
  • 12,245
  • 6
  • 43
  • 74
42
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…
Aamir
  • 2,943
  • 5
  • 26
  • 28
27
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?
Tony the Pony
  • 40,327
  • 71
  • 187
  • 281
27
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…
700 Software
  • 85,281
  • 83
  • 234
  • 341
24
votes
2 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?
secretagentmango
  • 619
  • 2
  • 10
  • 17
23
votes
7 answers

Change vertical position of strike-through?

I'm applying the strikeout tag: $5,000,000 But the line is too low.. .it's about 1/4 from the bottom rather than through the middle. Any way I can modify this so it goes a bit more through the middle?
jeffkee
  • 5,106
  • 12
  • 44
  • 76
18
votes
5 answers

Intellij idea deprecated no strikeout/strikethrough

I'm using IntelliJ IDEA v12. When I import a project, there’s a strikeout/strikethrough line on the method which has the annotation @Deprecated, but I used alt+enter to disable it. So, how can I reactivate this feature? I want to display that…
Awakening
  • 3,615
  • 8
  • 35
  • 51
18
votes
4 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…
Santosh Kumar
  • 26,475
  • 20
  • 67
  • 118
1
2 3
13 14