Skip to content

Is there a hotkey for choosing Lexer for new file? #5640

Closed Answered by Alexey-T
ferrlen asked this question in Q&A
Discussion options

You must be logged in to vote

few methods:

  1. hotkey to open the Lexers dialog: reassign the hotey (see https://wiki.freepascal.org/CudaText#Configuration ) for the command

  2. 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!

  3. 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 method run. 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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ferrlen
Comment options

Answer selected by ferrlen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants