![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
found that i was missing the albedo keyword, also added max_distance
(uberpov) ... goes in /usr/share/gtksourceview-3.0/language-specs
Post a reply to this message
Attachments:
Download 'povsyntax37.tar.gz' (4 KB)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
James Holsenback <nom### [at] none com> wrote:
> found that i was missing the albedo keyword, also added max_distance
> (uberpov) ... goes in /usr/share/gtksourceview-3.0/language-specs
Hi,
This is a very interesting idea... I use Debian, so I would this .lang file too.
But, it's impossible for me to decompress any of the tar.gz you posted. I always
have this errors :
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
Could you add a link to pastebin.org, so we could just copy/past this xml file ?
Regards,
Post a reply to this message
Attachments:
Download '' (0 KB)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"zebulon" <nomail@nomail> wrote:
> James Holsenback <nom### [at] none com> wrote:
> > found that i was missing the albedo keyword, also added max_distance
> > (uberpov) ... goes in /usr/share/gtksourceview-3.0/language-specs
>
> Hi,
>
> This is a very interesting idea... I use Debian, so I would this .lang file too.
>
> But, it's impossible for me to decompress any of the tar.gz you posted. I always
> have this errors :
>
> tar: This does not look like a tar archive
> tar: Skipping to next header
> tar: Exiting with failure status due to previous errors
>
> Could you add a link to pastebin.org, so we could just copy/past this xml file ?
>
> Regards,
Hi again,
I think I solved my attachements download problem: instead of just clicking on
the link to download the tar.gz file -- which download an unusable archive only,
I used the link in a wget command line :
$ wget
http://news.povray.org/povray.binaries.utilities/attachment/%3C55aa36ce%241%40news.povray.org%3E/povsyntax37.tar.gz
.... and this tar.gz can be read/open normally (I can even know the real
name/size of the file archived: povray.lang, 17.7KB).
I'm sorry, this method will work only for unixes system, but I know there exists
wget.exe for windows (so windows users can use this command line in a CMD CLI
window. There exists too a better shell "MSys" which is a portage of many GNU
commands -- plus a rxvt-like console. With it, you can write/use your prefered
sh/bash scripts in windows.
Post a reply to this message
Attachments:
Download 'capture-povsyntax37.tar.gz .jpg' (23 KB)
Preview of image 'capture-povsyntax37.tar.gz .jpg'
![capture-povsyntax37.tar.gz .jpg](/povray.binaries.utilities/attachment/%3Cweb.55d9e6c9743848b4883859310%40news.povray.org%3E/capture-povsyntax37.tar.gz%20.jpg?ttop=443586&toff=50&preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"zebulon" <nomail@nomail> wrote:
> "zebulon" <nomail@nomail> wrote:
> > ...
> > Could you add a link to pastebin.org, so we could just copy/past this xml file ?
> > ...
Hi again,
I added a link to pastebin... since I can now read the file, maybe some people
will prefer copy/past the file content.
http://pastebin.com/P23Yk1KL
Cheers,
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I am user of KDE. I established Gedit. At a click to the file: to open in:
Gedit...
The file opens without syntax highlighting. Further it is necessary to go to
settings and to include syntax highlighting. And, so every time. It very much
depresses.
Besides, Gedit - text editor. Who uses it? I use Geany. It is IDE. It is direct
access to Povray: I wrote, I pressed the button, I saw...
Gnome3 - very bad DE in Linux for Povray (also and for 3D). Gnome3 - very good
for Tamagoch and Internet bla-bla-bla...
Sorry!
Post a reply to this message
Attachments:
Download 'geany.jpg' (391 KB)
Preview of image 'geany.jpg'
![geany.jpg](/povray.binaries.utilities/attachment/%3Cweb.55db6b92743848b47a3e03fe0%40news.povray.org%3E/geany.jpg?ttop=443586&toff=50&preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
James Holsenback <nom### [at] none com> wrote:
> found that i was missing the albedo keyword, also added max_distance
> (uberpov) ... goes in /usr/share/gtksourceview-3.0/language-specs
Hi James Holsenback,
After downloading and using your file... I noticed a few things :
#ifdef & #ifndef are colored only on '#if' part, because 'if' has been defined
before 'ifdef' 'ifndef' -- I sorted the keywords (longest first / shortest
last):
ifndef
ifdef
if
instead of 'if', 'ifdef', 'indef'. So 'ifdef' and 'ifndef' are full colored now.
I did the same with some other keywords.
I have, too, added all keywords (as constants) & macros (as functions) from the
povray default includes. They were missing, imho.
New pastebin:
"povray 3.7 syntax highlighting for gtk + includes"
http://pastebin.com/7c2Chx24
I changed in your previous title Gedit->gtk, because this syntax hilightining is
not only for Gedit, but works with all text editors using gtk gadgetery and
syntax hilighting. For example, I use Debian, Mate desktop (fork of Gnome2). The
text editor is Pluma (fork of Gedit). I can use this color file too.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"LanuHum" <Lan### [at] yandex ru> wrote:
> I am user of KDE. I established Gedit. At a click to the file: to open in:
> Gedit...
> The file opens without syntax highlighting. Further it is necessary to go to
> settings and to include syntax highlighting. And, so every time. It very much
> depresses.
> Besides, Gedit - text editor. Who uses it? I use Geany. It is IDE. It is direct
> access to Povray: I wrote, I pressed the button, I saw...
> Gnome3 - very bad DE in Linux for Povray (also and for 3D). Gnome3 - very good
> for Tamagoch and Internet bla-bla-bla...
> Sorry!
Hi LanuHum,
Sorry for the late reply, but I do not come frequently to check this page. I'm a
very busy man :\
IMPORTANT: This file syntax highlighting works with all text editors using gtk+
(Gedit in Gnome, Kedit in KDE, Pluma in MATE, and so on...)
So the first thing to do is to close all these open programs (Gedit, KEdit,
Pluma, ...), otherwise the syntax coloring will remain invisible in the menu of
your prefered text editor.
Then do the following:
1) from the pastebin.com link given above, save the xml file as "povray.lang" on
your desktop, for example.
NOTE: This pastebin link has infinite lifetime. So you can come back later if
you want, the file will always be there.
2) copy or move (as root) povray.lang in
"/usr/share/gtksourceview-3.0/language-specs/"
That's all, to install the file.
Now, syntax highlighting should appear in the menu of your text editor, here:
"Display / Color Mode / Others / POV-Ray 3.7"
IMPORTANT: colorization files is not automatic. You have to select the
colorization you want on each first opening the file. After this, the file will
always be opened with the syntax highlighting you have chosen for it.
If you reinstall you system or destroy your /home, you will have to do this all
again.
I hope I have helped you enough ;)
The attached snapshot shows povray.lang installed + color syntax in Pluma (MATE
desktop, Debian "stretch")
Post a reply to this message
Attachments:
Download 'capture du 2016-07-27 17-19-20.jpg' (215 KB)
Preview of image 'capture du 2016-07-27 17-19-20.jpg'
![capture du 2016-07-27 17-19-20.jpg](/povray.binaries.utilities/attachment/%3Cweb.5798dfcb743848b4883859310%40news.povray.org%3E/capture%20du%202016-07-27%2017-19-20.jpg?ttop=443586&toff=50&preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
James Holsenback <nom### [at] none com> wrote:
> found that i was missing the albedo keyword, also added max_distance
> (uberpov) ... goes in /usr/share/gtksourceview-3.0/language-specs
Update to version 3.8 now includes:
blend_gamma
blend_mode
bokeh
bt709
bt2020
dictionary
grey
optional
potential
user_defined projection
user_defined pattern
CLab2RGB
CRGB2Lab
CCLab2RGB_D65
CCRGB2Lab_D65x
Info obtained from:
http://wiki.povray.org/content/Documentation:Tutorial_Section_1#Version_3.8
Regards,
bgimeno
Post a reply to this message
Attachments:
Download 'povray3-8.lang.zip' (12 KB)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 4/8/20 7:25 AM, B. Gimeno wrote:
> James Holsenback <nom### [at] none com> wrote:
>> found that i was missing the albedo keyword, also added max_distance
>> (uberpov) ... goes in /usr/share/gtksourceview-3.0/language-specs
>
> Update to version 3.8 now includes:
>
...
>
Thank you!
Bill P.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
William F Pokorny <ano### [at] anonymous org> wrote:
> On 4/8/20 7:25 AM, B. Gimeno wrote:
> > James Holsenback <nom### [at] none com> wrote:
> >> found that i was missing the albedo keyword, also added max_distance
> >> (uberpov) ... goes in /usr/share/gtksourceview-3.0/language-specs
> >
> > Update to version 3.8 now includes:
> >
> ...
> >
> Thank you!
>
> Bill P.
My first mistake was to have published it without having thoroughly tested it.
Now I was reviewing all the standard version 3.8 inclusion files and the list of
reserved keywords in case I had left something else.
What worries me after reviewing the file with the WINPOV editor and
consulting the oracle, is that dark, ancient and bloody sacred war between tabs
and white spaces everywhere. Free trolls food!
It's like having read a grimoire from the Unseen University's Library taking
advantage of the fact that the librarian was dispatching his ration of bananas.
When I finish consulting include files and decide how to homogenize styles I
will publish it again.
B Gimeno
Pd. However, a great job on the part of those who started this task. Thank you.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |