Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nonbreaking space in inline code

I'm trying to write a regex, ^ call X *([(&]|$), into a README.md but it gets split at the end of a sentence:

some text ... ^ call X
*([(&]|$)

I think it's probably understandable that there is a space between X and * but it would still be better to display it continuously. Is it possible? It tried   but it seems not to be working in inline mode.

like image 816
Raul Laasner Avatar asked Jul 27 '15 22:07

Raul Laasner


People also ask

How do I make a nonbreaking space in HTML?

HTML Non-Breaking Space ( ) The simplest way to add a space in HTML (besides hitting the spacebar) is with the non-breaking space entity, written as   or  .

Which entity represents nonbreaking space?

The   character entity is used to denote a non-breaking space which is a fixed space. This may be perceived as twice the space of a normal space. It is used to create a space in a line that cannot be broken by word wrap.

How do I use &NBSP?

  (it should have a semi-colon on the end) is an entity for a non-breaking space. Use it between two words that should not have a line break inserted between them by word wrapping. There is a good explanation about when this is appropriate grammar on the English StackExchange.

What is the function of &Nbsp?

In word processing and digital typesetting, a non-breaking space, , also called NBSP, required space, hard space, or fixed space (though it is not of fixed width), is a space character that prevents an automatic line break at its position.

What is a non-breaking space symbol?

What Are Nonbreaking Spaces? Nonbreaking spaces are special characters that keep words or individual characters from separating at line breaks. Nonbreaking spaces are particularly useful between ellipsis points. However, you can use them between any words or characters that you want to stay together.


1 Answers

You must use HTML for this:

<code>^&nbsp;call&nbsp;X&nbsp;*([(&]|$)</code>
like image 101
Zombo Avatar answered Oct 22 '22 02:10

Zombo