Is there a way to read the syntax highlighting group of the active file?

Is there a way to read the syntax highlighting group of the active file?

1
NewbieNewbie
1

    19:20 - Nov 17#1

    I have some keyboard shortcuts to add repetitive text to files/scripts. I'd like to have one .js in UE that would read the syntax highlighting type, Bash or Powershell, etc. and add the text appropriate to the language. I could probably do it based on file extension, but as there are multiple extensions for one syntax highlighting, it would be easier to base it off of that.

    Thanks!

    Mofi
    6,573532
    Grand MasterGrand Master
    6,573532

      21:09 - Nov 17#2

      It is not possible to get the name of the syntax highlighting language applied at current position of the caret in the active file because of there is no UltraEdit scripting command or property which could be used in an UltraEdit script.

      I recommend reading and viewing about the smart templates feature of UltraEdit.

      Some (not all) forum topics about smart templates:
      Best regards from an UC/UE/UES for Windows user from Austria