how to set matlab built in Editors Callback
Mostrar comentarios más antiguos
I like to extend the matlab editor with a simple function.
If i press "(" the a function is called which automatically inserts ")" and move the cursor one to the left.
I tried to figure it out like it's done with the command window here: http://www.mathworks.com/matlabcentral/newsreader/view_thread/257842View thread
Matlab Version 8
EDIT{ it's nearly that what i want. it works with the code below (at least on Matlab 8)
i used some functios of Yair Altmans editor macro to get the hEditorPane: http://UndocumentedMatlab.com/blog/EditorMacro/
Done:
- apply on all opened Editor (getAll Active Editors)
- run at startup -> solution startup doc
- apply on newly opened edtiors
I'll Test this function and extend it. if it's stable I'll post it in the file exchange. For now feel free to copy 'n' paste it
3 comentarios
Walter Roberson
el 12 de Mzo. de 2013
To check, which MATLAB version is this for?
Andreas Justin
el 25 de Mzo. de 2013
Editada: Andreas Justin
el 25 de Mzo. de 2013
Andreas Justin
el 5 de Abr. de 2013
Respuesta aceptada
Más respuestas (1)
Andreas Justin
el 12 de Mzo. de 2013
Editada: Andreas Justin
el 12 de Mzo. de 2013
1 comentario
Andreas Justin
el 21 de Mzo. de 2013
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!