How to make dynamic file seperator(/,\) to make document linux and windows compatible?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to make dynamic file seperator(/,\) to make document linux and windows compatible?

documentationchronicles
Hi there. I want to make my asciidoc documents Linux and Windows compatible. I need dynamic file separator for links, images, and videos so a web browser can find the location of the media file properly. What strategy should I watch to achieve that?
Reply | Threaded
Open this post in threaded view
|

Re: How to make dynamic file seperator(/,\) to make document linux and windows compatible?

mojavelinux
Administrator
Simple solution. Windows understands both the \ and / separators, whereas Linux/Unix/macOS only understands / separators. Therefore, you should always use / separators and your toolchain will be portable across systems. There's no reason to be using \ separators anymore. They are antiquated.

Cheers,

-Dan

On Mon, May 13, 2019 at 7:19 AM documentationchronicles [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi there. I want to make my asciidoc documents Linux and Windows compatible. I need dynamic file separator for links, images, and videos so a web browser can find the location of the media file properly. What strategy should I watch to achieve that?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/How-to-make-dynamic-file-seperator-to-make-document-linux-and-windows-compatible-tp6911.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux