1. Tilde

Why does the Tilde (~) not show up when I use it as shorthand for "home" in a Linux path?

Example:

/path/to/file
^ there should be a Tilde here...


-Greg

new topic     » topic index » view message » categorize

2. Re: Tilde

ghaberek said...

Why does the Tilde (~) not show up when I use it as shorthand for "home" in a Linux path?

Example:

/path/to/file
^ there should be a Tilde here...


-Greg

Because the tilde ~ is creole's escape character. It is used to escape creole tags.

For example, say you wanted to show adjacent asterisks "**". Without a tilde this would be interpreted as the start of a bold section of text, but by typing in "~**" the first asterisk is accepted as is and not seen as part of a creole tag. The tilde also escapes itself, so to show a single tilde, use two of them ...

:##~~/path/to/file## \\**^ there should be a Tilde here...**

~/path/to/file
^ there should be a Tilde here...

An alternate way to do this is to use the triple brace tag, which encloses text that will not be examined for creole tags at all.

:##{{{~}}}/path/to/file## \\**^ there should be a Tilde here...**

~/path/to/file
^ there should be a Tilde here...

new topic     » goto parent     » topic index » view message » categorize

3. Re: Tilde

Thanks Derek! grin

-Greg

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu