SlickEdit Community
SlickEdit Product Discussion => SlickEdit® => Features and/or Improvements => Topic started by: mktschudi on September 29, 2022, 06:49:44 PM
-
While editing TypeScript or JavaScript, SE formats "@return" as a keyword in a function description. My company uses the alias "@returns", which isn't formatted. Can you add the alias? Is there a place for me to patch it in?
Thanks!
-
There is a color coding profile for JavaDoc doc comments where you can add this.
With a javascript file open, go to Document -> Javascript Options, and click on the "Color Coding" entry. At the top of the Color Coding page, there's a pull down for "Profile". Click on that, and select JavaDoc. Now it should show the @keywords for javadoc, and you can click on "Add Words..." to add @returns. And hit OK, and then @returns should be color coded in JavaDoc for all languages, not just TypeScript.
-
Thank you, Patrick! I understand the options page better now.
One additional step: I needed to re-select the profile for JavaScript after modifying the JavaDoc profile. Otherwise, my JavaScript file gets formatted as JavaDoc. :)
-
Ach, I left that out. Sorry about that, I'm glad you caught that.