TextTools提供了一小部分用于文本操作的宏。它们打算与Editormacro一起使用//www.tatmou.com/matlabcentral/fileexchange/24615。
包括宏包括:
transpose_chars
交换角色周围的角色
transpose_words
交换嘉年会周围的单词
大写
从Caret位置开始大写字
fill_comment
包裹当前的评论段落。选择当前的评论段落,并包裹并缩进它。
遵循编辑的评论宽度偏好。
句法:
tt = textTools;
ttmacro = texttools(macroname)
例子:
tt = textTools;
EditorMacro('alt-Q',tt.fill_comment,'run')
EditorMacro('shift-ctrl-t',texttools('transpose_words'),'run')
警告:
该代码很大程度上依赖于无证件和未支持的MATLAB功能。金宝app自担风险!
引用为
Perttu Ranta-Aho(2022)。TextTools(//www.tatmou.com/matlabcentral/fileexchange/25122-TextTools),matlab中央文件交换。检索。