FS#26285 - [gtksourceview3] Add syntax highlighting for PKGBUILD files
Attached to Project:
Arch Linux
Opened by Thomas (radioactiveman) - Wednesday, 05 October 2011, 20:23 GMT
Last edited by Jan Alexander Steffens (heftig) - Sunday, 16 October 2011, 14:12 GMT
Opened by Thomas (radioactiveman) - Wednesday, 05 October 2011, 20:23 GMT
Last edited by Jan Alexander Steffens (heftig) - Sunday, 16 October 2011, 14:12 GMT
|
Details
Description:
[Geany] has a sed-fix to show bash-like syntax highlighting for PKGBUILD files. [gedit] uses the file "sh.lang" for that. This one could be patched in the same way like the Geany config file. Additional info: * gtksourceview3 3.2.0-1 * /usr/share/gtksourceview-3.0/language-specs/sh.lang How to achieve: Use this command: sed -i 's|*.sh|*.sh;PKGBUILD|' /.../sh.lang (path has to be fixed) |
This task depends upon
Closed by Jan Alexander Steffens (heftig)
Sunday, 16 October 2011, 14:12 GMT
Reason for closing: Won't implement
Additional comments about closing: gedit lets you change the highlight mode, and remembers it per-file.
If you want a PKGBUILD language spec, just copy the sh.lang one and alter it appropriately.
Sunday, 16 October 2011, 14:12 GMT
Reason for closing: Won't implement
Additional comments about closing: gedit lets you change the highlight mode, and remembers it per-file.
If you want a PKGBUILD language spec, just copy the sh.lang one and alter it appropriately.
I am not familiar with gtksourceview, is it possible to provide own files in gtksourceview-3.0/language-specs (could be then packaged with pacman-contrib)? Not sure about the benefit (scope of gtksourceview), and I am rather indifferent on this issue.
[Geany] is also not the only program which use a patch like this. [Medit] does the same ...
PKGBUILD attached.