How to use latex on normal text?

I can write latex code on a new line by writing:

...

It would be great to be able to write latex code in the same line as the text so that there is no need for a new line.

Hi, @rjraya

May I know if the usage of `word` works? For example, latex code instead of the following?

latex code

Let me know if you are looking at something else instead. Thanks.

Here is an example:

$x^2$ ← should display x^2

and it should be possible to write in a line of text:

“it happens that the square, $x^2$, …”

In your example above @ahmaddanial it happens that you don’t use mathematical symbols, which is what I am interested mainly in.