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.
CudaText Markdown Default Settings Qs
-
- Posts: 2533
- Joined: 25.08.2021 18:15
Re: CudaText Markdown Default Settings Qs
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)
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
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!