Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structure editor for input cells #290

Open
dilijev opened this issue Oct 28, 2013 · 3 comments
Open

Structure editor for input cells #290

dilijev opened this issue Oct 28, 2013 · 3 comments

Comments

@dilijev
Copy link
Collaborator

dilijev commented Oct 28, 2013

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
Copy link

That is an interesting idea. 👍

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

@dilijev
Copy link
Collaborator Author

dilijev commented Oct 28, 2013

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants