one hotkey different macro based on ext?

one hotkey different macro based on ext?

1
NewbieNewbie
1

    Nov 29, 2005#1

    is it possible to either setup one macro or multiple macros on one hotkey so that when you press it it might change a little based on the ext of the current file?

    I have a debug function that needs to change just so slightly if it's in php or js files... thanks in advance

    344
    MasterMaster
    344

      Nov 29, 2005#2

      Nothing easier than that:

      Code: Select all

      InsertMode
      ColumnModeOff
      HexOff
      IfExtIs "php"
      "we have a php here"
      EndIf
      IfExtIs "js"
      "seems like js"
      EndIf
      
      rds Bego
      Normally using all newest english version incl. each hotfix. Win 10 64 bit