rfm's avatar
Level 2

How do I turn OFF auto formatting?

This auto formatting is messing up my posts. For example, when I copy a directory listing and past it below:

==================================================

C:\wamp64\www\laravel\prj01>dir

Volume in drive C is Acer

Volume Serial Number is 9CE7-F03B

Directory of C:\wamp64\www\laravel\prj01

09/15/2024 08:26 AM <DIR> . 09/15/2024 08:25 AM <DIR> .. 09/11/2024 01:12 PM 258 .editorconfig 09/15/2024 08:26 AM 1,117 .env 09/15/2024 08:26 AM 1,066 .env.example 09/11/2024 01:12 PM 186 .gitattributes 09/11/2024 01:12 PM 264 .gitignore 09/15/2024 08:25 AM <DIR> app 09/11/2024 01:12 PM 350 artisan 09/15/2024 08:25 AM <DIR> bootstrap 09/15/2024 08:26 AM 1,966 composer.json 09/15/2024 08:26 AM 319,585 composer.lock 09/15/2024 08:25 AM <DIR> config 09/15/2024 08:25 AM <DIR> database 09/11/2024 01:12 PM 244 package.json 09/11/2024 01:12 PM 1,191 phpunit.xml 09/15/2024 08:25 AM <DIR> public 09/11/2024 01:12 PM 4,109 README.md 09/15/2024 08:25 AM <DIR> resources 09/15/2024 08:25 AM <DIR> routes 09/15/2024 08:25 AM <DIR> storage 09/15/2024 08:27 AM <DIR> tests 09/15/2024 08:27 AM <DIR> vendor 09/11/2024 01:12 PM 263 vite.config.js 12 File(s) 330,599 bytes 12 Dir(s) 223,926,915,072 bytes free

==================================================

It appears fine before I post it, but after posting it, it is all messed up. I only want it to format when I tell it to format.

0 likes
5 replies
jlrdw's avatar

Just use ruby markdown i.e.,:


c:\stohere>dir
 Volume in drive C is Windows
 Volume Serial Number is 2A76-9BF7

 Directory of c:\stohere

11/27/2021  02:00 PM    <DIR>          .
12/03/2021  01:06 AM    <DIR>          uploads
               0 File(s)              0 bytes
               2 Dir(s)  386,283,008,000 bytes free
1 like
Snapey's avatar

put it as a codeblock by putting three backticks ``` on their own line before and after the thing that should be treated as code and not markdown

1 like
rfm's avatar
Level 2

@jlrdw I don't know ruby markdown.

@snapey Thanks for the backticks tip, is that a ruby markdown thing?

Where do I go to learn the markdown used by this site?

What I would really like to do is disable all markdowns and for the markdowns to only happen on demand, is there a way to do that?

Is there a special markdown code to force a newline: Carriage Return + Line Feed?

JussiMannisto's avatar

@rfm Whenever you write a comment (on a non-mobile device), there's a Markdown Preview toggle. You can use that to see what your message will look like. Below the toggle is a link to the instructions.

Where do I go to learn the markdown used by this site?

You can check the Wikipedia page of Markdown and/or the aforementioned link.

What I would really like to do is disable all markdowns and for the markdowns to only happen on demand, is there a way to do that?

No. Also your lines don't collapse because of Markdown, it's just default html white space collapsing. This forum provides Markdown plus GitHub-flavored code blocks as the formatting tools.

1 like

Please or to participate in this conversation.