! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Please add support to rst syntax
Status:
RESOLVED: INVALID
Severity:
enhancement
Product:
Mousepad
Component:
General

Comments

Description Paolo Cavallini 2014-05-04 10:05:49 CEST
reStructuredText is a very handy markup language, used for many things including Python module documentation:
http://docutils.sourceforge.net/rst.html
Its support should be easy (it has been added recently to gedit, for instance).
It would be good to add it to mousepad also.
I'm available fortesting and further info.
Thanks.
Comment 1 Andre Miranda editbugs 2014-05-05 17:06:27 CEST
Language highlighting is related to GtkSourceView[1].

If you take a look at GtkSourceView source[2], you'll see it has a 'rst.lang' file. It was added in 2013-11-15.

The problem here is that mousepad uses gtksourceview2 which seems to be not updated.

Fortunately you can manually add the RST language syntax[3].

[1] https://wiki.gnome.org/Projects/GtkSourceView/LanguageDefinitions
[2] https://git.gnome.org/browse/gtksourceview/tree/data/language-specs
[3] https://mail.gnome.org/archives/gedit-list/2011-May/msg00012.html
Comment 2 Andre Miranda editbugs 2014-05-14 06:45:43 CEST
Closing this bug as the problem is related to GtkSourceView.
The rst files will be supported out of the box when(and only if) mousepad is ported to gtk3 :/

Reopen if disagree.

Bug #10866

Reported by:
Paolo Cavallini
Reported on: 2014-05-04
Last modified on: 2014-05-14

People

Assignee:
Matthew Brush
CC List:
2 users

Version

Version:
Unspecified
Target Milestone:
Mousepad 0.2.x

Attachments

Additional information