printselection.em
来自「source insight的EM文件 可以扩展SI的宏功能」· EM 代码 · 共 27 行
EM
27 行
/*
Prints the currently selected text.
Note: this alters the contents of the clipboard
As with other macros, to use this:
1. Add this macro file to your project.
2. Run the Options->Menu Assignments command.
3. Find and select the macro name "PrintSelection" in the command list
4. Insert the command onto a menu.
Now you can run the macro command
*/
macro PrintSelection()
{
hbufCur = GetCurrentBuf()
filename = GetBufName(hbufCur)
Copy
hbufTemp = NewBuf("Output: @filename@")
SetCurrentBuf(hbufTemp)
Paste
Print()
CloseBuf(hbufTemp)
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?