Ricardo Vendramini | 2 Nov 2010 23:18
Picon
Favicon

syntax highlighting


	Hi

	I'm Ricardo from Sao Paulo - Brazil and this my first message in this 
group...

	I have using Bluefish 1.0.7 and personalized the PHP syntax 
highlighting with custom patterns.

	But in Bluefish 2 i dont find where customize the pattern rules of 
syntax highlighting.

	Somebody can help-me??

	Regards

	Ricardo

--

-- 
To unsubscribe from this list: send the line "unsubscribe bluefish-users" in
the body of a message to listar@...
List Web Page: http://www.ems.ru/cgi-bin/listargate.cgi
Main Web Page: http://bluefish.openoffice.nl/

Olivier Sessink | 3 Nov 2010 22:07
Picon
Gravatar

Re: syntax highlighting

On 11/02/2010 11:18 PM, Ricardo Vendramini wrote:
>
> Hi
>
> I'm Ricardo from Sao Paulo - Brazil and this my first message in this
> group...
>
> I have using Bluefish 1.0.7 and personalized the PHP syntax highlighting
> with custom patterns.
>
> But in Bluefish 2 i dont find where customize the pattern rules of
> syntax highlighting.
>
> Somebody can help-me??

in /usr/share/bluefish/bflang/ you can find the definitions. You can 
copy a file to ~/.bluefish/ if you want to make local modifications, but 
remember to copy all include files as well (such as all-javascript.bfinc 
and such)

Olivier

-- 
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/
--

-- 
To unsubscribe from this list: send the line "unsubscribe bluefish-users" in
the body of a message to listar@...
List Web Page: http://www.ems.ru/cgi-bin/listargate.cgi
Main Web Page: http://bluefish.openoffice.nl/
(Continue reading)

WarnerJan Veldhuis | 11 Nov 2010 11:19
Picon
Favicon

menuitems and php endif

Hi,

(I sent a message through Gmane but I realised that the message won't show up on this list, so I subscribed and try again :) )

I want to report two issues:

1) The "Open homepage" and "Report a bug" menuitems do not work. When run via konsole, I get this error message for both menuitems:
** (bluefish:3669): WARNING **: Failed trying to launch URL in about dialog

2) Just a nitpick: endif is a valid PHP keyword but not marked a such. This is a valid example:
<?php if ( $someCondition ) : ?>
   //show some html
<?php endif; ?>

This is just an alternative way of writing the if/endif block. (It saves you from lots of ugly <?php}?> constructs...)

Using Fedora x86_64 with Bluefish 2.0.2.

Cheers!

WarnerJan
Jim Hayward | 11 Nov 2010 14:50

Re: menuitems and php endif

On Thu, 2010-11-11 at 10:19 +0000, WarnerJan Veldhuis wrote:

> 1) The "Open homepage" and "Report a bug" menuitems do not work. When
> run via konsole, I get this error message for both menuitems:
> ** (bluefish:3669): WARNING **: Failed trying to launch URL in about
> dialog

What version of Fedora? Are you using the Bluefish package from the
Fedora repo? The menu items work for me with Fedora running under Gnome.
You appear to be running KDE, correct? I'll have to try testing using
KDE.

> 2) Just a nitpick: endif is a valid PHP keyword but not marked a such.
> This is a valid example:
> <?php if ( $someCondition ) : ?>
>    //show some html
> <?php endif; ?>

Looks like there are two bugs. The C++ style comment from your example
doesn't highlight as a comment. 

Regards,
	Jim H

--

-- 
To unsubscribe from this list: send the line "unsubscribe bluefish-users" in
the body of a message to listar@...
List Web Page: http://www.ems.ru/cgi-bin/listargate.cgi
Main Web Page: http://bluefish.openoffice.nl/

clansco | 11 Nov 2010 14:52
Favicon

regex replace in selection loop

Hi,
I search to replace all characters but  <at>  in selection

posix search in selection:
[^ <at> ]*
replace with:
*

top:
bash-4.1$ 3767 fal       20   0  233m  42m  12m R   98  1.4   2:15.52 bluefish ^C
bash-4.1$ 3767 fal       20   0  236m  46m  12m R   99  1.5   2:54.18 bluefish ^C
bash-4.1$ 3767 fal       20   0  242m  52m  12m R  100  1.7   4:29.50 bluefish ^C

regards,
ff

-- 
http://clansco.org
--

-- 
To unsubscribe from this list: send the line "unsubscribe bluefish-users" in
the body of a message to listar@...
List Web Page: http://www.ems.ru/cgi-bin/listargate.cgi
Main Web Page: http://bluefish.openoffice.nl/

WarnerJan Veldhuis | 11 Nov 2010 14:57
Picon
Favicon

RE: menuitems and php endif

Yes, it's the Bluefish version from the Fedora repo. Here's the text from the Build info menuitem:

bluefish 2.0.2

This version of Bluefish was built with:
./configure  '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--disable-static' '--disable-update-databases' '--disable-xml-catalog-update' '--docdir=/usr/share/doc/bluefish-2.0.2' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'

And yes, I am working with KDE.

Output from uname -a:
Linux pcwj.localdomain 2.6.34.7-61.fc13.x86_64 #1 SMP Tue Oct 19 04:06:30 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

KDE info:
Qt: 4.6.3
KDE Development Platform: 4.5.2 (KDE 4.5.2)

The C++-style comment should not be working: it's HTML in between :) This example works just fine:
<?php if ( $someCondition ) : ?>
 <!-- some html -->
<?php endif; ?>

Cheers,

WarnerJan



> Subject: Re: menuitems and php endif
> From: jimhayward-EOm3DoCPqL1YcD0sb2hCutHuzzzSOjJt@public.gmane.org
> To: bluefish-users <at> lists.ems.ru
> Date: Thu, 11 Nov 2010 05:50:37 -0800
>
> On Thu, 2010-11-11 at 10:19 +0000, WarnerJan Veldhuis wrote:
>
> > 1) The "Open homepage" and "Report a bug" menuitems do not work. When
> > run via konsole, I get this error message for both menuitems:
> > ** (bluefish:3669): WARNING **: Failed trying to launch URL in about
> > dialog
>
> What version of Fedora? Are you using the Bluefish package from the
> Fedora repo? The menu items work for me with Fedora running under Gnome.
> You appear to be running KDE, correct? I'll have to try testing using
> KDE.
>
> > 2) Just a nitpick: endif is a valid PHP keyword but not marked a such.
> > This is a valid example:
> > <?php if ( $someCondition ) : ?>
> > //show some html
> > <?php endif; ?>
>
> Looks like there are two bugs. The C++ style comment from your example
> doesn't highlight as a comment.
>
>
> Regards,
> Jim H
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe bluefish-users" in
> the body of a message to listar-QLpEr2logwzILq5++fvS8w@public.gmane.org
> List Web Page: http://www.ems.ru/cgi-bin/listargate.cgi
> Main Web Page: http://bluefish.openoffice.nl/
>
WarnerJan Veldhuis | 11 Nov 2010 15:43
Picon
Favicon

Syntax highlight for CSS

While I am still in a bugreporting mood: CSS fails to mark a style for a class that contains dashes. Consider this example:

#read-more {}
#read_more {}
.read-more {}
.read_more {}

As you can see, the underscores work, the dashes don't.

Cheers and keep up the good work!

WarnerJan
Jim Hayward | 12 Nov 2010 06:18

Re: Syntax highlight for CSS

On Thu, 2010-11-11 at 14:43 +0000, WarnerJan Veldhuis wrote:
> While I am still in a bugreporting mood: CSS fails to mark a style for
> a class that contains dashes. Consider this example:
> 
> #read-more {}
> #read_more {}
> .read-more {}
> .read_more {}
> 
> As you can see, the underscores work, the dashes don't. 

I found a couple more bugs too. According to CSS 2.1...

"In CSS, identifiers (including element names, classes, and IDs in
selectors) can contain only the characters [a-zA-Z0-9] and ISO 10646
characters U+00A1 and higher, plus the hyphen (-) and the underscore
(_); they cannot start with a digit, or a hyphen followed by a digit."

We were also incorrectly highlighting identifiers that started with a
digit or a hyphen followed by a digit. These problems should be fixed in
SVN revision 6131. Thanks for the bug report.

Regards,
	Jim H

--

-- 
To unsubscribe from this list: send the line "unsubscribe bluefish-users" in
the body of a message to listar@...
List Web Page: http://www.ems.ru/cgi-bin/listargate.cgi
Main Web Page: http://bluefish.openoffice.nl/

Jim Hayward | 12 Nov 2010 06:48

Re: menuitems and php endif

On Thu, 2010-11-11 at 10:19 +0000, WarnerJan Veldhuis wrote:
> 
> 2) Just a nitpick: endif is a valid PHP keyword but not marked a such.
> This is a valid example:
> <?php if ( $someCondition ) : ?>
>    //show some html
> <?php endif; ?>

Missing endif keyword added in SVN revision 6132.

Regards,
	Jim H

--

-- 
To unsubscribe from this list: send the line "unsubscribe bluefish-users" in
the body of a message to listar@...
List Web Page: http://www.ems.ru/cgi-bin/listargate.cgi
Main Web Page: http://bluefish.openoffice.nl/

Jim Hayward | 13 Nov 2010 17:59

Re: menuitems and php endif

On Thu, 2010-11-11 at 10:19 +0000, WarnerJan Veldhuis wrote:

> 
> 1) The "Open homepage" and "Report a bug" menuitems do not work. When
> run via konsole, I get this error message for both menuitems:
> ** (bluefish:3669): WARNING **: Failed trying to launch URL in about
> dialog

I tested with a new user on F14 under KDE. I no longer have an F13
install. Both menu items worked correctly.

Can you run the following test program in a console and post the
results. It will tell me whats configured as the default http handler on
your system and give me a better error message when trying to launch a
URI. Source code is attached.

http://www.linuxexperience.net/testing/app_info_test

Regards,
	Jim H
Attachment (app_info_test.c): text/x-csrc, 493 bytes

Gmane