Thangaraj (www.bootcd.us) schrieb:
Hi,

To change (php specific) style options, open the html.properties file,
and find the following part:
------
# PHP
# Default
style.hypertext.118=fore:#000033,back:#FFF8F8,eolfilled
# Double quoted String
style.hypertext.119=fore:#007F00,back:#FFF8F8
# Single quoted string
style.hypertext.120=fore:#009F00,back:#FFF8F8
# Keyword
style.hypertext.121=fore:#7F007F,italics,back:#FFF8F8
# Number
style.hypertext.122=fore:#CC9900,back:#FFF8F8
# Variable
style.hypertext.123=fore:#00007F,italics,back:#FFF8F8
# Comment
style.hypertext.124=fore:#999999,$(font.comment),back:#FFF8F8
# One line comment
style.hypertext.125=fore:#666666,italics,$(font.comment),back:#FFF8F8
# PHP variable in double quoted string
style.hypertext.126=fore:#00007F,italics,back:#FFF8F8
# PHP operator
style.hypertext.127=fore:#000000,back:#FFF8F8
--------

To use Ctrl+B to activate auto abberviation, you have to setup a
shortcut to the function in lua. Just insert the following code in
your php.properties file:
#---------
# 30 Shortcut to trigger auto abbreviation
command.name.30.$(file.patterns.php)=Auto-Abbreviation
command.subsystem.30.$(file.patterns.php)=3
command.30.$(file.patterns.php)=Abbreviations
command.shortcut.30.$(file.patterns.php)=Ctrl+B
command.mode.30.$(file.patterns.php)=savebefore:no
#--------

If you want 'ä' to work as an Abbreviation, you'll have to include
that in the abbrev.properties file as:
--------------
ä=ä|
--------------
where | is the cursor position after the completion of insertion.
You can add any number of such abbreviations in that file.

If possible, you can include a snip of what you consider as very
useful such shortcuts. I'll include them in the next version.

I'm update the shortcut key change in my copy and upload it now.

Warm Regards,
Thangaraj



On 12/16/05, Frank Wunderlich <[EMAIL PROTECTED]> wrote:

hi,
i don't like the style override (changing bg-color of <?php and ?>), how
to disable?
the auto-abbreviation did not work in my tests...ctrl+B works, so my
abbreviations.properties must be correct. i read in the lua-script that
space activates the auto-abbreviation...if i type ä (german special
char) and then space in a php-file nothing happens. if i type this char
and ctrl+b it will be replaced correctly by &auml;
can you make this working (maybe working without space)?

Greetings Frank

i added | in the abbrev.properties after each line...
but it works not...here my abbrev.properties:

ä=&auml;|
ö=&ouml;|
ü=&uuml;|
Ä=&Auml;|
Ö=&Ouml;|
Ü=&Uuml;|
ß=&szlig;|
€=&euro;|
µ=&micro;|
§=&sect;|
"=&quot;|
&=&amp;|
<=&lt;|
>=&gt;|
²=&sup2;|
³=&sup3;|
1/4=&frac14;|
1/2=&frac12;|
3/4=&frac34;|
(R)=&reg;|
(C)=&copy;|
TM=&trade;|

why should i change my html.properties? i use the same as before (not yours). i don't want that the lua-script change my values...
i copied the php.lua in my scite-directory and added

# Standard LUA Functions
extension.$(file.patterns.php)=$(SciteDefaultHome)\php.lua
#define the number of backup files you want to keep   0=none
backup.files=1

to my html.properties

the backupfunktion is great ;>
the funtion for brace/quote-completition schould check if a alphanumeric char exist after current position because when you want to add a new function in a construct like
$a=htmlentities($b);
=>
$a=stripslashes(htmlentities($b));

you must delete a senseless brace...

Hope you can help

Greets frank
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to