TextTools

版本 1.0.0.0 (3.2 KB) 作者: Perttu Ranta-aho
Collection of small macros for text manipulation
788.0 次下载
更新时间 2009/8/24

查看许可证

TextTools provides a small collection of macros for text manipulation. They are intended to be used together with EditorMacro http://www.mathworks.com/matlabcentral/fileexchange/24615.

Included macros are:
transpose_chars
Swap characters around the caret
transpose_words
Swap words around the caret
capitalize
Capitalize word starting from caret location
fill_comment
Wrap current comment paragraph. Selects current comment paragraph and wraps and indents it.
Follows Editor's comment width preference.

Syntax:
tt = TextTools;
ttMacro = TextTools(MacroName)

Examples:
tt = TextTools;
EditorMacro('Alt-Q',tt.fill_comment,'run')

EditorMacro('Shift-Ctrl-T',TextTools('transpose_words'),'run')


Warning:
This code heavily relies on undocumented and unsupported Matlab functionality. Use at your own risk!

引用格式

Perttu Ranta-aho (2024). TextTools (https://www.mathworks.com/matlabcentral/fileexchange/25122-texttools), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Programming 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0