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

Add syntax highlighting implementation for ReStructuredText (reST) #300

Closed
bittner opened this issue Jul 4, 2014 · 7 comments
Closed

Add syntax highlighting implementation for ReStructuredText (reST) #300

bittner opened this issue Jul 4, 2014 · 7 comments

Comments

@bittner
Copy link
Contributor

bittner commented Jul 4, 2014

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

@bittner
Copy link
Contributor Author

bittner commented Jul 4, 2014

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?

@elextr
Copy link
Member

elextr commented Jul 4, 2014

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

@scriptum
Copy link
Member

scriptum commented Jul 7, 2014

Syntax highlighting is nice, but it would be better to have reST plugin like this: http://youtu.be/otM_tjIi_vY?t=3m30s

@andy5995
Copy link
Contributor

andy5995 commented Jan 3, 2019

Add implementation details in data/filetypes.restructuredtext

That file has been moved since then to data/filedefs/filetypes.restructuredtext.

I'm working on this ticket atm.

@ghost
Copy link

ghost commented Jan 1, 2020

@andy5995 any update?

@andy5995
Copy link
Contributor

andy5995 commented Jan 1, 2020

No, I'm sorry to report I didn't get anywhere with this. I'll unassign myself from the ticket.

@eht16
Copy link
Member

eht16 commented Oct 4, 2020

Closing as it is unlikely this will happen unless someone will write a Scintilla lexer for reStructuredText.

@eht16 eht16 closed this as completed Oct 4, 2020
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

6 participants