Hi again Olivier:
OK, there are plenty of unused text style types which I
could adapt for the needed perl syntax.
The problem is that they would retain their original names in
the preferences panel.
So, for instance, in order to change the color of a hash
variable, you would have to know to change, say, foldheader, in
the preference panel. Not at all user-friendly!

I see no way to change the names used in the preference
panel. Apparently they're not defined in a file. (It would be
nice if the user could specify the language, and the panel could
show the 'highlight' names from the relevant bflang2 file.)
I realize that the preferences apply to all languages, so
can't be tailored for perl.
Can we at least have variables 1-4, strings 1-3, and
brackets 1-3 added to the preference panel?
Actually, the string and bracket types are probably
sufficiently general across languages that they could be given
more descriptive names.
Harvey
==========================================
On 11/9/2011 12:12 AM, Olivier Sessink wrote:
On 11/09/2011 02:38 AM, Harvey S. Frey wrote:
I just downloaded Bluefish, and it seems
very nice, but the syntax
highlighting for perl is poor.
I'd like to have different colors for different variable types
( <at> , %, $)
and different quote types (' ', " ", ` `).
The instructions in the manual seem to refer to a different
version than
2.0.3 I downloaded.
I found a perl.bflang2 file in the share subdirectory, but I
have no
idea how to change it. I don't see colors mentioned in it
anywhere.
Is it documented somewhere?
look at sample.bflang2 which has a lot of comments how the syntax
engine works.
The elements in the language file have a 'highlight' property, and
in the top of the language file the highlight property is linked
to a textstyle. This can be changed by the user. If you have three
'highlights' for variable's, the user can change in the
preferences which textstyle they are linked with (all the same or
all different). Each textstyle has a font style, weight and fg/bg
color which again can be set by the user (look in the preferences
panel).
To make all languages look similar there is a textstyle 'value'
for example. If you change that, the color of value's is changed
in all supported languages. If you need more textstyles with a
good argumentation we can add them. The best way to start is to
give each of the elements first a different 'highlight'.
Does my explanation make sense for you?
Olivier
--
=============================
Harvey S. Frey MD PhD JD
hsfrey-FhXRvTsqfPI@public.gmane.org www.harp.org
------------------------------
Obama campaigned on a pledge to close down the jail at Guantánamo Bay, and to end the use of military commissions.
How is it possible that, two years after he was elected, there are still more than 150 prisoners there, and this November, one of them will go on trial before one of those very commissions?
=============================