What is '`' character called?

[亡魂溺海] 提交于 2019-12-05 09:59:27

问题


I feel silly for asking this but it isn't like I could google this.

What is the ` character called? In case it doesnt show up, it is the character used for inline code with markdown. Also, on most keyboards, it shares the key with ~.

I like all three answers so I made this a CW instead of accepting


回答1:


All sorts of things, but in programming mostly the back-quote or backtick,




回答2:


Grave (pronounced Grahv, not like the synonym for tomb) or Grave accent.




回答3:


From the Jargon file, the prime nerd reference which really should be an ISO standard :-)

Common: backquote; left quote; left single quote; open quote; ; grave.

Rare: backprime; backspark; unapostrophe; birk; blugle; back tick; back glitch; push; opening single quotation mark; quasiquote.




回答4:


You can use Unicode table to find name of the symbol. There are utilities which let you search it, like gucharmap. It gives U+0060 GRAVE ACCENT for this symbol.




回答5:


This answer or this answer provides a good definition.

In laymen's terms "no-shift-tilde" is also useful in PHP for keeping mySQL statements from crashing on single quotes on the table name.

SELECT * from `the_table_name` WHERE id=1 // best practice

For some reason certain PHP servers will choke on this:

SELECT * from 'the_table_name' WHERE id=1 // not preferred method

This normally works, but doesn't pass nice in strings:

SELECT * from "the_table_name" WHERE id=1 // how to escape this string?

Other than that, I don't use it much.



来源:https://stackoverflow.com/questions/3377743/what-is-character-called

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!