Skip to main content
added 10 characters in body
Source Link
Masroor
  • 1.3k
  • 6
  • 6

I have single quote inside my inline codes. Something like, "echo [single back quote] cat file.txt[single back quote]", where the whole thing within double quotes need to be shown as code. How do I display the single quotes? Which escape character need to be used? I tried \ without any avail.

I have single quote inside my inline codes. Something like, "echo [single quote] cat file.txt[single quote]", where the whole thing within double quotes need to be shown as code. How do I display the single quotes? Which escape character need to be used? I tried \ without any avail.

I have single quote inside my inline codes. Something like, "echo [single back quote] cat file.txt[single back quote]", where the whole thing within double quotes need to be shown as code. How do I display the single quotes? Which escape character need to be used? I tried \ without any avail.

Source Link
Masroor
  • 1.3k
  • 6
  • 6

How do you show the left single quote in code?

I have single quote inside my inline codes. Something like, "echo [single quote] cat file.txt[single quote]", where the whole thing within double quotes need to be shown as code. How do I display the single quotes? Which escape character need to be used? I tried \ without any avail.