Questions tagged [quotation-marks]
271 questions
178
votes
6 answers
How to including variables within strings?
So, we all should know that you can include variables into strings by doing:
String string = "A string " + aVariable;
Is there a way to do it like:
String string = "A string {aVariable}";
In other words: Without having to close the quotation marks…

Gray Adams
- 3,927
- 8
- 32
- 39
106
votes
3 answers
Do I need to wrap quotes around font family names in CSS?
I remember hearing a long time ago that it was considered "best practice" to wrap quotes around font names that contain multiple words in the CSS font-family property, like this:
font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
For the…

daGUY
- 27,055
- 29
- 75
- 119
31
votes
1 answer
How to force a syntax-highlighting refresh in emacs?
In emacs, especially when ssh'ed into a remote machine, there's a delay between when I type a closing quotation mark and when emacs updates the syntax-highlighting to reflect that change. For a few seconds, all of the text after my quotation is…

davidreedernst
- 485
- 6
- 11
31
votes
4 answers
Down angled quote (« and ») in HTML
Possible Duplicate:
Does unicode or HTML have a vertical double guillemet (chevron)?
Is there a downwards facing alternative to « and » (« and » respectively)?
I have tried to find an answer elsewhere but to no avail. I assume css…

rickyduck
- 4,030
- 14
- 58
- 93
16
votes
3 answers
Using left double quotation marks in strings in VB
In following code, the usage of the string "“" (i.e. a left double quotation mark inside a string) results in a compile error in VB.NET:
StringVar = Replace(StringVar, "“", "“")
What’s going on here?

zanhtet
- 2,040
- 7
- 33
- 58
16
votes
6 answers
How to print variable inside quotation marks?
I would like to print a variable within quotation marks. I want to print out "variable"
I have tried a lot, what worked was:
print('"', variable, '"')
but then I have two spaces in the output:
" variable "
How can I print something within a pair…

Heiko
- 329
- 1
- 2
- 7
12
votes
1 answer
Is it possible to start each line of an inline element with a given character?
I am trying to emulate a style of quotations that was used in old books. The quotation would be inline, but each line of the quotation would have an open quote at the beginning, like follows:
Lorem ipsum dolor sit amet, consectetur adipisicing elit,…

user4253226
- 123
- 4
10
votes
5 answers
Add quotation marks to comma delimited string in PHP
I have a form which is a select multiple input which POSTs values like this: option1,option2,option3 etc..
How is the best way to convert this to 'option1','option2','option3' etc...
Currenty I'm doing this, but it feels…

Per
- 149
- 2
- 4
- 12
9
votes
4 answers
Replacing quotation marks in Javascript?
For a web app I'm making, I'm going to be getting text strings coming in, occasionally which contain quotation marks. Because I am then going to be document.writing the string, they need to be changed either into apostrophes or escaped. How would…

James Wanchai
- 2,861
- 4
- 21
- 16
8
votes
3 answers
Error when trying to install pyamg: clang: error: no such file or directory: '“-I/.../boost_1_59_0”'
I am trying to install pyamg in my virtual environment. However, I am getting the following error. I am using mac OS.
c++: pyamg/amg_core/amg_core_wrap.cxx
clang: error: no such file or directory:…

MAS
- 4,503
- 7
- 32
- 55
7
votes
1 answer
how to escape single quote in `jq`
I am trying to format a json string using jq with expected output like this:
[
{
"command": [
"printf 'this is a text'"
]
}
]
However, I cannot get it to work for the single quotes ('), e.g. $ jq -n '[{"command": ["printf 'this…

Chen Xie
- 3,849
- 8
- 27
- 46
7
votes
3 answers
What Quotation Marks Should I Use In CSS?
Possible Duplicate:
Which type of quotes we should use in css background url (“…”)? Single, double or no quote needed?
Simple question. What quotation marks should I use in CSS?
Option #1:
background: url( 'foo.png' );
Option #2:
background:…

daGrevis
- 21,014
- 37
- 100
- 139
7
votes
4 answers
Is there a regex to grab all quotation marks?
I know that in regex, there is \s to match all whitepsaces (space, tabs ...), \d for any number, etc.
Is there the same shortcut to match all different quotation marks: ' " “ ” ‘ ’ „ ” « »?
And more on Wikipedia ...
I can write my own regex, but I…

GaspardP
- 880
- 1
- 12
- 24
6
votes
3 answers
Adding Quotes in Java
I asked a similar question earlier for Swift, and I'm now facing the same problem in Android/Java.
Is there a way in Java for adding quotation marks to a String? The quotation marks should localize properly (see…
user3386180
5
votes
1 answer
Are apostrophes valid containers for HTML element attribute values?
Usually HTML element attribute values are marked with a quotation mark, like
Sometimes, however, you see code like
Is it valid HTML and can it cause any problems? What…

simon
- 12,666
- 26
- 78
- 113