-
I often open new files and brainstorm ideas, but it seems that to pick the correct lexer for the text I need to click on View -> Lexers... . This isn't particularly painful, but it'd be great to speed up the process with a hotkey. Is there a hotkey for picking the Lexer or can I create a hotkey for opening the Lexer dialog? Thanks again! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
few methods:
3b. then assign a hotkey to your new plugin |
Beta Was this translation helpful? Give feedback.
few methods:
hotkey to open the Lexers dialog: reassign the hotey (see https://wiki.freepascal.org/CudaText#Configuration ) for the command
assign the filetyle (extension) to lexers using this trick: https://wiki.freepascal.org/CudaText#File_types . then add file extension to your files and lexer will be detected!
possible to make the hotkey to activate FIXED lexer. e.g. C++. Call "Plugins / Make plugin". fill some steps. eg make new python folder
cuda_my
and python methodrun
. add python code for new plugin:ed.set_prop(PROP_LEXER_FILE, 'C++')
3b. then assign a hotkey to your new plugin
cuda_my
/run
(after Cud restart). via command-palette and F9.