Open dilijev opened 11 years ago
That is an interesting idea. :+1:
In addition, I feel the syntax highlighting would also be a nice plus for the source editor.
Can I ask how the source editor of wxMaxima is implemented? Is it actually an html page?
Anyway, I think WxStyledTextCtrl might be helpful when implementing syntax highlighting. :+1:
It's a hierarchy of MathCtrl objects. See my blog post http://dilijev-wxmaxima.blogspot.com/2013/01/the-role-of-good-software-design-in.html
I'm not actually 100% sure how it's rendered, as I've never dealt with that code directly.
I imagine with some effort we can make the structure of the output cells display for the input cells as well.
Currently everything is drawn on a wxCanvas: wxStyledTextCtrl would work for input cells, but not for 2d math output, as far as I know, at least. The wxCanvas is created by MathCtrl.cpp, the text is drawn on it by the Draw() functions in *Cell.cpp.
Add an option to use a formula structure editor for entering formulas for input cells (so that it pretty-prints on input like MS Word or WYSIWYG LaTeX editors).