How Can avoid replace of quotation marks in Pages - macos

Sometimes Pages (and many other program, even text-editor) replace the single quotation mark (') with another quotation mark (‘). I write code and If copy and paste the last quotation mark I get an error.
How can I avoid this replacement?

System preferences > Keyboard -> Text -> Use Smart quotes and dashes

Related

Ui path error while writing cell activity

Expression Activity type 'VisualBasicValue`1' requires compilation in order to run. Please ensure that the workflow has been compiled.
how to solve this error
This can happen when a string with quotes is copied from a RTF formatted app, such as Microsoft Word. The " quotation character is not the code version. Try deleting the current assignment in the write cell activity and type manually so that the quotes (") are of the right type. Notice the slanted quotes vs. the straight quotes in the two examples below:
“This is a quote from an RTF app”
"This is a quote from a code editor"

Pycharm how to show strings in debugger without escapes

If I have a string consisting of these characters: I'm rich! and I look at this string in the pyCharm debugger, I'm shown 'I\\'m rich!'
Is it possible to see it without the leading, trailing, and escaped single quotes (ie as it would be stored in memory)?
In more complex strings all the escaping shown by the debugger can make it hard to really understand what characters really are, or are not, in the string.
Michael

Why is there a starting backtick in bash's unexpected EOF `"' error

Given:
echo '"Number' > temp.sh
./temp.sh
With this script, Bash prints this error message:
./temp.sh: line 1: unexpected EOF while looking for matching `"'
Why does it print out `"' versus something like '"'?
PS: I tried searching for a answer but only got answers to questions asking for help debugging this error. Instead I want to know why the error message prints outs a starting backtick versus a single quote.
Using separate open and close quotes is historically considered good form in English, and an essential part of proper typography. This fell partially out of style due to cost-saving measures (and attempts to conserve the limited 7-bit ASCII character space), but has never completely disappeared.
From Practical Typography:
Curly quotes are the quo­ta­tion marks used in good ty­pog­ra­phy.
From Wikipedia:
"Ambidextrous" quotation marks were introduced on typewriters to reduce the number of keys on the keyboard, and were inherited by computer keyboards and character sets. Some computer systems designed in the past had character sets with proper opening and closing quotes. However, the ASCII character set, which has been used on a wide variety of computers since the 1960s, only contains a straight single quote (U+0027 ' apostrophe) and double quote (U+0022 " quotation mark).
...and, a few paragraphs below, referring specifically to the (mis)use of the backtick as an open quote:
These same systems often drew the grave accent (`, U+0060) as an open quote glyph (actually a high-reversed-9 glyph, to preserve some usability as a grave). This gives a proper appearance at the cost of semantic correctness. Nothing similar was available for the double quote, so many people resorted to using two single quotes for double quotes, which would look like the following: [...]

Dealing with backticks in PhpStorm / WebStorm

We recently changed our project boilerplates for using single quotes to using backticks. Working with backticks in *Storm on OSX is not as convenient as working with single quotes, thus we tried to come up with some solutions which still lack some convenience. We're looking for further ideas to find better solutions now.
How single quotes work in *Storm on OSX
typing one single quote results in two single quotes with the cursor in between ('|')
typing afterwards results in text between the single quotes ('what has been typed')
if 'surround selection on typing quote or brace' is true, selecting some text and typing a single quote results in
the text being wrapped in single quotes ('some text')
How backticks work in *Storm on OSX
typing one backtick results in one backtick (`), when pressing space you get two backticks with the cursor in between (`|`)
when typing a letter, you get two backticks with the cursor in between (`|`) except if the letter is a, e, o, u, i, then you'll get (à, è, ò, ù, ì) which is quite disturbing
when pressing space, you get two backticks with the cursor in between (`|`)
selecting some text and typing a backtick results in a backtick (`), which is also not what we'd like to have
Since a backtick is a dead key by default, I am struggled with the same issue.
Live Template
Currently I created a live template named it -- (double-dash) for a quick which prepares a backtick-surrounded string. Below you can find the settings I used for the template:
Abbreviation: --
Description: Backticks
Template text:
`$0$`$END$
Apply: JavaScript
Unfortunately PHPStorm/Webstorm does not provide a way to toggle the quote style. Similar to the case toggler (Edit -> Toggle Case)
Concerning the typing
Just use keystrokes <backtick> + <space>and type a text and you'll get `a text`.
Concerning surrounding
Create a Live Template called backticks with a content of `$SELECTION$`$END$, set the context to Javascript. Go to the keymap and search for 'Surround with Live Template'. Assign a key combination. Go back to the editor, select some text, press the just assigned
combination and press 'ENTER' to confirm selecting your 'backticks' template. This will wrap your text in backticks.

Custom code highlight Notepad++

I am creating a custom code highlight for notepad++. What I want to do is the following:
some fieldnames are writen in the code with a ' in front of their name, for exampe
if 'variable = "test" then ...
I would like to highlight these words, but notepad++ does not seem to allow a delimiter starting with ' and ending with a space, not does it allow space as an escape character. Also, using ' as a keyword and enabling prefix mode has no effect. Anyone has a suggestion? Should I use another expression to let notepad recognise the space/' ?
Thanks in advance!
If you only need to highlight a single word, you can use a keyword in prefix mode. However when using single or double quotes in a keyword, they need to be escaped with a backslash. So your keyword would be:
\'
This may not be possible in notepad++. I can get the behavior you want using a character other than a single quote, like a back-tic, but it doesn't seem to work with single or double quotes. I suspect those characters are treated special within the syntax highlighter.

Resources