CudaText Markdown Default Settings Qs

Post Reply
katwalk
Posts: 4
Joined: 24.05.2025 02:08

CudaText Markdown Default Settings Qs

Post 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.
main Alexey
Posts: 2533
Joined: 25.08.2021 18:15

Re: CudaText Markdown Default Settings Qs

Post 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)
katwalk
Posts: 4
Joined: 24.05.2025 02:08

Re: CudaText Markdown Default Settings Qs

Post 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!
Post Reply