TextTools

버전 1.0.0.0 (3.25 KB) 작성자: Perttu Ranta-aho
Collection of small macros for text manipulation
다운로드 수: 789
업데이트 날짜: 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 (2026). TextTools (https://kr.mathworks.com/matlabcentral/fileexchange/25122-texttools), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2007b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Programming에 대해 자세히 알아보기
버전 게시됨 릴리스 정보
1.0.0.0