wxMaxima-developers / wxmaxima

A gui for the computer algebra system Maxima built with wxWidgets
https://wxMaxima-developers.github.io/wxmaxima/
Other
466 stars 96 forks source link

Structure editor for input cells #290

Open dilijev opened 10 years ago

dilijev commented 10 years ago

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).

mleoking commented 10 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:

dilijev commented 10 years ago

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.

gunterkoenigsmann commented 9 years ago

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.