Toggle comments
There should be a simple way to comment out lines & blocks of code on all platforms.
Answer
Textastic 4.1 for Mac adds the new keyboard shortcuts “Toggle Comment” (Cmd-/) and “Toggle Block Comment” (Cmd-Option-/).
Is there a way to define the comment being toggled? I created a syntax for Hugo templating and when I am editing html template files with my custom Hugo syntax it would be very helpful were I able to define the comment snippet somewhere such that it knew to use `{{/*` cursor `*/}}` rather than `<!--` cursor `-->`
This is defined in a .tmPreferences file, typically called "Comments.tmPreferences".
You need to define the TM_COMMENT_START and TM_COMMENT_END shell variables.
Please have a look at https://sublime-text-unofficial-documentation.readthedocs.io/en/latest/reference/comments.html - this web page also contains an example at the end of the page.
Customer support service by UserEcho
Textastic 4.1 for Mac adds the new keyboard shortcuts “Toggle Comment” (Cmd-/) and “Toggle Block Comment” (Cmd-Option-/).