[Request] Embedded source view to support syntax highlighting on code snippets
Bug #275714 reported by
LouisHandfield
This bug affects 16 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
I realize Zim is not a code editor, but having syntax highlighting inside verbatim areas might be something nice to have. I am guessing it could simply be that you right-click on a verbatim block, click on Edit, and you would have the possibility to choose a language to highlight with.
Or perhaps it would be better to have a completely separate plugin that would insert a code widget and let you choose which syntax you want, line numbers, etc...
Awesome work so far though :)
Related branches
lp:~jaap.karssenberg/zim/pyzim-next
(Merged)
tags: | added: embedded objects |
tags: |
added: embedded-objects removed: embedded objects |
Changed in zim: | |
status: | Confirmed → In Progress |
Changed in zim: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
It is very difficult to have one widget render both wiki text and syntax highlighted code, so the proper way to implement this would be embedding a special widget, probably a GtkSourceView widget. This should go into a plugin since it is functionality which is only useful for a specific audience and can be implemented without touching any of the core libraries (ok this is not entirely true, but it should be).
Low on my TODO list for now, but if anyone wants to work on this I will support it.