Page 1 of 1

CudaText Markdown Default Settings Qs

Posted: 24.05.2025 02:12
by katwalk
Hey folks, got a couple of little snags with CudaText and was hoping someone could lend a hand:

1. When saving a file, how do I set the default format to Markdown (with the .md extension)?
2. How can I make the default code highlighting (lexer) for unsaved files Markdown?

I've been using CudaText for a bit now and it's been great. I mainly use it for writing text, not coding, so Markdown is my go-to format.

Re: CudaText Markdown Default Settings Qs

Posted: 24.05.2025 07:10
by main Alexey
1. If you save new document as filename with .md extension, app already changes lexer to Markdown. don't it work for you?
it works for all lexers, e.g. if you 'save as' filename.cpp, lexer is changed to C++.

2. Option
"newdoc_lexer": "Markdown"
(write it to user.json of course)

Re: CudaText Markdown Default Settings Qs

Posted: 24.05.2025 14:03
by katwalk
Thanks for your reply and the solutions. I've upgraded to the latest version of CudaText and set newdoc_lexer to markdown. Now it works as expected, thanks!