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
Add syntax highlighting implementation for ReStructuredText (reST) #300
Comments
Just curious: On the Geany website you mention that Geany's documentation is written in reStructuredText. What editor do you use for writing / compiling / testing the documentation? |
There is no rest highlighting because the Scintilla widget (www.scintilla.org a separate project from Geany) does the highlighting and does not support rest. If you submit a highlighter to that project we can use it in Geany. Highlighting is provided by C++ code in Scintilla, not anything in the filetypes file, that just sets parameters for the C++ highlighting code. I would guess that the authors of the documentation used Geany maybe, not everyone requires highlighting :) |
Syntax highlighting is nice, but it would be better to have reST plugin like this: http://youtu.be/otM_tjIi_vY?t=3m30s |
That file has been moved since then to data/filedefs/filetypes.restructuredtext. I'm working on this ticket atm. |
@andy5995 any update? |
No, I'm sorry to report I didn't get anywhere with this. I'll unassign myself from the ticket. |
Closing as it is unlikely this will happen unless someone will write a Scintilla lexer for reStructuredText. |
Problem Description
Syntax highlighting for reStructuredText is prepared in Geany, i.e. the data file filetypes.restructuredtext exists and the extensions are evaluated to activate the highlighting mode, but the highlighting implementation is in fact empty.
As a result, there is no highlighting for reST working in Geany at the moment.
Proposed Solution
Add implementation details in data/filetypes.restructuredtext leveraging other, reliable sources, e.g. reST language specs of gtksourceview (used by Gnome's gedit reST plugin).
The text was updated successfully, but these errors were encountered: