Frank Gebelein | 1 Jun 16:09
Picon

PHP escape sequences & strings

Hi there!

I've got some trouble with string escape sequences in PHP. The syntax 
highlighter does not behave correctly when I write something like:

echo "The file \"" . $file . "\" is already existing!";

Does anybody know how to fix it?

thx
Frank
Philippe Lhoste | 1 Jun 23:48
Picon

Re: PHP escape sequences & strings

Frank Gebelein wrote:
> I've got some trouble with string escape sequences in PHP. The syntax 
> highlighter does not behave correctly when I write something like:
> 
> echo "The file \"" . $file . "\" is already existing!";
> 
> Does anybody know how to fix it?

Which system, which version of SciTE, what kind of file?
I do a lot of PHP, and would have noticed such problem. I just pasted 
your line in a .php file, and it was highlighted correctly.
Escape sequences work with single and double quotes.
I use the HTML lexer.

--

-- 
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --
Frank Gebelein | 2 Jun 01:39
Picon

Re: PHP escape sequences & strings

Philippe Lhoste schrieb:
> Which system, which version of SciTE, what kind of file?

Well, I was using SciTE 1.68/windows with the extra php stuff taken from

http://scintilla.sourceforge.net/SciTEExtras.html

to get autocompletion for php working. The file was a standard php file.

> I do a lot of PHP, and would have noticed such problem. I just pasted 
> your line in a .php file, and it was highlighted correctly.
> Escape sequences work with single and double quotes.
> I use the HTML lexer.

I've just downloaded blank 1.69 and tried with standard configuration. 
Everything worked, as you've said. Strange...

But I need autocompletion/hints, because I'm used to (Visual Studio.NET) 
:-( Any hints?

thx

--

-- 
* Frank Gebelein
* Mainz (near Frankfurt), Germany
Frank Gebelein | 2 Jun 10:49
Picon

Re: Scite-interest Digest, Vol 36, Issue 20

Is there any chance to get it running under windows?

--

-- 
* Frank Gebelein
* Mainz (near Frankfurt), Germany
Exchequer | 2 Jun 11:54
Picon
Favicon

SciTE REBOL lexer bug

Hello all REBOL users, SciTE 1.69 is the version in question. See attached PNG image "SciTE_REBOL_sample.png" for example of where the REBOL lexer fails to account for the CHAR datatype. All characters after the trailing " are treated as belonging to the SciTE properties file. Note the correct parsing of the comment in green in the previous line. This appears to be a bug. Q: is this the appropriate forum for bug reports? Cheers, Exchequer

View this message in context: SciTE REBOL lexer bug
Sent from the SciTE forum at Nabble.com.
_______________________________________________
Scite-interest mailing list
Scite-interest <at> lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest
roy wood | 2 Jun 13:24
Picon

Re: Re: Scite-interest Digest, Vol 36, Issue 20

> Is there any chance to get it running under windows?

ScitePM?  I'm not sure of the state of Gtk support under windows these
days.  It's a Gtk/GLib app, which is theoretically pretty portable.

And have you looked at FilerX?  It's a Windows-based Scite project
management tool that looks pretty good....
Neil Hodgson | 2 Jun 14:31
Picon

Re: SciTE REBOL lexer bug

Exchequer:

> Q: is this the appropriate forum for bug reports?

   Bugs should be posted to the bug tracker at
https://sourceforge.net/tracker/?group_id=2439&atid=102439
   They will automatically then be seen on the Scintilla mailing list.

   Neil
Jens Hatlak | 2 Jun 15:50
Picon

Re: UnAustralian keyboard input on GTK+ 2.x

Neil wrote:
>   Fortunately the only interesting parameter is undocumented so I'm
> just going to assume it works in the best way possible, by delivering
> a NUL terminated UTF-8 string in the evocatively named 'arg1'
> argument. When Scintilla is in Unicode mode, this string is placed
> straight into the buffer but for other character sets, the text is
> converted to that character set.
> 
>   This seemed to work OK for me with setting the keyboard to German
> and Russian locales using ISO-8859-1 and KOI-8 character sets but
> should be checked by people that really use these locales. Other
> locales such as Chinese and Japanese may also be affected so if you
> want Scintilla/SciTE 1.60 to work for you then you should check this
> modification.
> 
>   Available from CVS and from
> http://www.scintilla.org/scite.zip (not from SourceForge which is not
> uploading today)

I'm wondering whether this change should have fixed my problem as well. 
I just downloaded and built SciTE from the location above, using GTK 
2.8.16 on Debian. The problem, however, persists:

When I go to http://en.wikipedia.org/wiki/Wikipedia#Coverage with 
Firefox 1.5 (built with GTK2) and copy the last paragraph (Ctrl+C), 
trying to paste into SciTE (Ctrl+V) has no effect (nothing is pasted) 
until I switch to UTF-8 (File/Encoding/8-Bit -> UTF-8). Obviously, it's 
because of the dashes.

Relevant environment variables:
LC_CTYPE=de_DE
LC_LANG=de_DE <at> euro

code.page is 0, character.set is not set.

If this change was not supposed to fix my issue, please tell me what to 
do. It's quite annoying, and switching to UTF-8 is not really a 
solution. If a conversion table is too complicated, dropping 
unrepresentable characters is better than pasting nothing at all.

Greetings,

Jens

--

-- 
Jens Hatlak <http://jens.hatlak.de/>
Jugendnetz Frankfurt Adminteam <http://ffm.junetz.de/>
Akronyme: Abkürzungen wie ROTFL oder LOL <http://akronyme.junetz.de/>
Robert Hicks | 2 Jun 17:21
Picon

Re: SciTE REBOL lexer bug

Exchequer wrote:
> Hello all REBOL users, SciTE 1.69 is the version in question. See 
> attached PNG image "SciTE_REBOL_sample.png" for example of where the 
> REBOL lexer fails to account for the CHAR datatype. All characters after 
> the trailing " are treated as belonging to the SciTE properties file. 
> Note the correct parsing of the comment in green in the previous line. 
> This appears to be a bug. Q: is this the appropriate forum for bug 
> reports? SciTE REBOL lexer bug Cheers, Exchequer

And please post "plain text" only.  : )

:Robert
Frank Gebelein | 2 Jun 13:44
Picon

Re: PHP escape sequences & strings

Frank Gebelein schrieb:
> But I need autocompletion/hints, because I'm used to (Visual Studio.NET) 
> :-( Any hints?

OK, got it. Just included php.api in html.properties as described in the 
documentation. Seems to be working.

thx

--

-- 
* Frank Gebelein
* Mainz (near Frankfurt), Germany

Gmane