POV-Ray : Newsgroups : povray.binaries.utilities : Syntax highlighting for gtksourceview (e.g. gedit) Server Time
14 Oct 2024 05:14:30 EDT (-0400)
  Syntax highlighting for gtksourceview (e.g. gedit) (Message 1 to 1 of 1)  
From: andyjt
Subject: Syntax highlighting for gtksourceview (e.g. gedit)
Date: 20 Jul 2007 19:40:01
Message: <web.46a1475ecc176d2923ccfc3a0@news.povray.org>
Hello, first post here, so I hope this is in the right place!

I wanted to get POV-Ray syntax highlighting working in a GNOME-based editor.
The standard editor which comes with my distro, gedit, uses gtksourceview to
do syntax highlighting, but since I couldn't find any POV-Ray files for
gtksourceview, I've had a go at making them myself

The files in the attached archive provide language definitions for
gtksourceview, so applications built using this technology (e.g. gedit) can
display POV-Ray (and MegaPOV) source files with appropriate syntax
highlighting.

Extract the files and place them in the gtksourceview-1.0/language-specs/
directory (on my system it is
/opt/gnome/share/gtksourceview-1.0/language-specs/). When you next start
gedit, POV-ray and MegaPOV syntax highlighting should be available in the
View/Highlight Mode/Others menu.

I've tested these on various source files, but any feedback or error-reports
would be helpful, thanks.


Post a reply to this message


Attachments:
Download 'povsyntax.tar.gz' (4 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.