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
[Documentation] Synchronize code and docs of test/editor.cxx #189
Comments
My suggestion would be to redefine the editor demo to not be a code highlighter (which is hard), but something more simple and practical. Perhaps ^F search could highlight all matches in the file instead of just one word at a time, highlighting the 'current' I think all people want to see is how highlighting works, and not be distracted by lots of syntax parsing code. |
First of all I would like to thank you for your work on FLTK. I finally found the GUI library that I want to use and I hope I can also contribute to the project in the future If I properly learn C++ and when I feel ready to! I have 2 suggestions for the doc example.
where should I create that? Inside the class constructor or inside the main? It's not clear and I don't know if I'm just a beginner and I should have figured that out be myself... Or:
Again I hope I could help a bit! |
I am sorry that I am so late to this, and will probably still take some time until I have something useful. I agree that writing a text parser should not be part of the tutorial. I am more thinking about a boilerplate start, adding feature by feature, and, as @rempas said, making it clear where the code goes. Also, a copy of the C text parser is part of FLUID. No real reason to repeat that here. |
@MatthiasWM Please feel free to work on this but I removed this issue from the 1.4.0 milestone because it's not important enough to hold the release. |
See #883 |
PR #883 merged. |
I wrote in this comment on issue #135:
The docs in chapter "Designing a Simple Text Editor" show in paragraph "Syntax Highlighting" much code including the entire style_parse() function. This code has obviously not been updated regularly, there are some parts missing/incomplete/outdated.
... we should synchronize the code and the docs at some time. I'm also not sure if it's useful to add the entire new functionality to the editor demo. Maybe it would be a compromise to
or something like that. In the simplest case we'd just document that the documentation is incomplete and that the real code in the source distro should be consulted (to avoid too much code duplication in the docs).
[End of citation].
The mentioned "new functionality" refers to the new style_parse() function in a separate file in fluid.
I'm opening this issue and classifying it as "Documentation" as a reminder that this should be done. It's low priority but since the editor code is documented it should be synchronized in one way or the other.
The text was updated successfully, but these errors were encountered: