Ok - this is a Slick-C macro. You can program SlickEdit itself using Slick-C macro code and in fact quite a lot of SlickEdit is programmed in Slick-C.
To add this tiny macro do the following steps:
- use 'Macro>Record Macro' immediately followed by 'Macro>Stop Recording Macro'
- now a dialog appears asking you what to do with the recorded (dummy) macro
- enter e.g. 'show-encoding' as macro name and also select 'Allow in read only mode' checkbox and click 'Save'
- now the macro module 'vusrmacs.e' containing user defined, recorded macros should be opened similar to this:
#include "slick.sh"
_command show_encoding() name_info(','VSARG2_MACRO|VSARG2_MARK|VSARG2_READ_ONLY|VSARG2_REQUIRES_MDI_EDITORCTL)
{
_macro('R',1);
}
- replace the line_macro('R',1);
with
message(_EncodingToOption(p_encoding));
- use 'Macro>Load Module to compile/add the new 'show-encoding' command to your SlickEdit configuration
This new command can be bound to a key etc. or simply can be invoked on SlickEdit commandline.
Hit ESCape or just click on it to activate and enter e.g. 'show-encoding' and hit 'ENTER' to run it.
Good luck, HS2