HighLight plugin

Discuss and announce AkelPad plugins
Locked
  • Author
  • Message
Offline
Posts: 22
Joined: Fri Aug 10, 2007 2:58 pm
Location: Москва

Post by sergeich »

Плагин хорошо работает, но при подсветке текста некоторыми цветами, например красным, шрифт получается каким то неровным. Можно ли это как то исправить?

Offline
Site Admin
Posts: 6411
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

sergeich
Скриншот?

Offline
Posts: 22
Joined: Fri Aug 10, 2007 2:58 pm
Location: Москва

Post by sergeich »

Instructor
Вот скриншот..
При большом шрифте нормально, при уменьшении вот что:
Сглаживание шрифтов включено.
Last edited by sergeich on Sun Sep 16, 2007 8:01 pm, edited 3 times in total.

Offline
Site Admin
Posts: 6411
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

Попробуйте увеличить шрифт, чтобы сверить, потому как на данном скриншоте неровности не заметны.

Offline
Posts: 22
Joined: Fri Aug 10, 2007 2:58 pm
Location: Москва

Post by sergeich »

Видимо, что то со сглаживанием шрифтов. При отключении ClearType эффекта неровности нет.

Offline
Posts: 9
Joined: Mon Sep 03, 2007 6:30 am

php.highlight

Post by kegf »

подсветка php файлов (уберите в html.highlight строку php):

Code: Select all

;Note:
;Color need to be in #RRGGBB format, if value
;equal to zero, then color ignored.

;==================
;Files to highlight
;==================
Extensions:
php
php3

;=================================
;Char          Color     Color in
;                        selection
;=================================
Delimiters:
<              #95001E    0
>              #95001E    0
?              #95001E    0
(              #0000CC    0
)              #0000CC    0
{              #00CC00    0
}              #00CC00    0
[              #00CC00    0
]              #00CC00    0
'              #CC0000    0
"              #CC0000    0
$              #FF0000    0

;============================================================
;Word                           Color    Color in   Case
;                                        selection  sensitive
;============================================================
Words:
\\                              #24EECC   0         FALSE
,                               #1A691A   0         FALSE
-                               #1A691A   0         FALSE
+                               #1A691A   0         FALSE
!empty                          #0000CC   0         FALSE
echo                            #0000CC   0         FALSE
print                           #0000CC   0         FALSE
addcslashes                     #0000CC   0         FALSE
addslashes                      #0000CC   0         FALSE
bin2hex                         #0000CC   0         FALSE
chr                             #0000CC   0         FALSE
chunk_split                     #0000CC   0         FALSE
convert_cyr_string              #0000CC   0         FALSE
count_chars                     #0000CC   0         FALSE
crc32                           #0000CC   0         FALSE
crypt                           #0000CC   0         FALSE
explode                         #0000CC   0         FALSE
extract                         #0000CC   0         FALSE
fetch_form                      #0000CC   0         FALSE
fprintf                         #0000CC   0         FALSE
get_html_translation_table      #0000CC   0         FALSE
hebrev                          #0000CC   0         FALSE
hebrevc                         #0000CC   0         FALSE
htmlentities                    #0000CC   0         FALSE
htmlspecialchars                #0000CC   0         FALSE
html_entity_decode              #0000CC   0         FALSE
implode                         #0000CC   0         FALSE
localeconv                      #0000CC   0         FALSE
ltrim                           #0000CC   0         FALSE
mail                            #0000CC   0         FALSE
md5                             #0000CC   0         FALSE
md5_file                        #0000CC   0         FALSE
metaphone                       #0000CC   0         FALSE
nl2br                           #0000CC   0         FALSE
number_format                   #0000CC   0         FALSE
ord                             #0000CC   0         FALSE
parse_str                       #0000CC   0         FALSE
parse                           #0000CC   0         FALSE
printf                          #0000CC   0         FALSE
quoted_printable_decode         #0000CC   0         FALSE
quotemeta                       #0000CC   0         FALSE
rtrim                           #0000CC   0         FALSE
sha1                            #0000CC   0         FALSE
sha1_file                       #0000CC   0         FALSE
similar_text                    #0000CC   0         FALSE
soundex                         #0000CC   0         FALSE
sprintf                         #0000CC   0         FALSE
sscanf                          #0000CC   0         FALSE
strcasecmp                      #0000CC   0         FALSE
strcoll                         #0000CC   0         FALSE
strcspn                         #0000CC   0         FALSE
stripcslashes                   #0000CC   0         FALSE
stripos                         #0000CC   0         FALSE
stripslashes                    #0000CC   0         FALSE
strip_tags                      #0000CC   0         FALSE
stristr                         #0000CC   0         FALSE
strlen                          #0000CC   0         FALSE
strnatcasecmp                   #0000CC   0         FALSE
strnatcmp                       #0000CC   0         FALSE
strncasecmp                     #0000CC   0         FALSE
strncmp                         #0000CC   0         FALSE
strpos                          #0000CC   0         FALSE
strrchr                         #0000CC   0         FALSE
strrev                          #0000CC   0         FALSE
strripos                        #0000CC   0         FALSE
strrpos                         #0000CC   0         FALSE
strspn                          #0000CC   0         FALSE
strstr                          #0000CC   0         FALSE
strtok                          #0000CC   0         FALSE
strtolower                      #0000CC   0         FALSE
strtoupper                      #0000CC   0         FALSE
strtr                           #0000CC   0         FALSE
str_ireplace                    #0000CC   0         FALSE
str_pad                         #0000CC   0         FALSE
str_repeat                      #0000CC   0         FALSE
str_replace                     #0000CC   0         FALSE
str_rot13                       #0000CC   0         FALSE
str_shuffle                     #0000CC   0         FALSE
str_split                       #0000CC   0         FALSE
str_word_count                  #0000CC   0         FALSE
substr                          #0000CC   0         FALSE
substr_count                    #0000CC   0         FALSE
substr_replace                  #0000CC   0         FALSE
trim                            #0000CC   0         FALSE
ucfirst                         #0000CC   0         FALSE
ucwords                         #0000CC   0         FALSE
vprintf                         #0000CC   0         FALSE
vsprintf                        #0000CC   0         FALSE
wordwrap                        #0000CC   0         FALSE
while                           #00CC00   0         FALSE
for                             #00CC00   0         FALSE
if                              #00CC00   0         FALSE
elseif                          #00CC00   0         FALSE
else                            #00CC00   0         FALSE
switch                          #00CC00   0         FALSE
function                        #00CC00   0         FALSE
array                           #00CC00   0         FALSE
print                           #00CC00   0         FALSE
global                          #00CC00   0         FALSE
static                          #00CC00   0         FALSE
return                          #00CC00   0         FALSE
foreach                         #00CC00   0         FALSE
exit                            #00CC00   0         FALSE
set                             #0000CC   0         FALSE
isset                           #0000CC   0         FALSE
unset                           #0000CC   0         FALSE
<!--                            #00AA00   0         FALSE
-->                             #00AA00   0         FALSE

Offline
Posts: 4
Joined: Wed Sep 12, 2007 9:52 pm

Post by raina »

Hello, new to the forum, new to AkelPad. Now, I'm looking for a program to claim metapad's throne on my computers and as AkelPad has the SDI option and a number of features through plugins, it is a perfect candidate. One of the more interesting plugin features is the highlighter but alas, I cannot get it to work. I'm looking at this list
Instructor wrote:- Copy "Archive.zip\Plugs\*.*" to "AkelFiles\Plugs" (do not change directory structure).
- Turn on plugin from plugins dialog.
- Open file which highlighting supported (htm, html, cpp, c, css, dpr, cmd ... - they are specified in *.highlight).
and I'm pretty sure I'm doing everything right but.. nothing's happening, no highlighting, no colors. The LineBoard plugin seems to work when "installed" and configured the same way.

Offline
Site Admin
Posts: 6411
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

raina
Does plugins dialog show "HightLight::Main" status as "Running"?

Offline
Posts: 4
Joined: Wed Sep 12, 2007 9:52 pm

Post by raina »

Yes, it does. I have the problem on two computers and I don't know if it's worth mentioning but I didn't use the AkelPad installer to set the program up, I just downloaded the archive and started from there and as I want it to be portable, I'm saving settings in the .ini file.

Offline
Posts: 876
Joined: Tue Jul 24, 2007 8:54 am

Post by Fr0sT »

kegf, что-то не пашет...

Offline
Site Admin
Posts: 6411
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

raina
This package works?

Fr0sT
Файл должен быть в кодировке UTF-16LE.

Offline
Posts: 4
Joined: Wed Sep 12, 2007 9:52 pm

Post by raina »

@Instructor, nice instructing, thanks. The package worked and made me realize where the error was. Somehow all my .highlight files were in the Plugs dir with the .dlls, not in the HighLight subdir inside it. Dunno how I managed that, really. ;) Thanks again and sorry for any inconvenience.

Offline
Posts: 876
Joined: Tue Jul 24, 2007 8:54 am

Post by Fr0sT »

Точно, заработало. Хотя цветовая гамма ужасная.

Offline
Posts: 9
Joined: Mon Sep 03, 2007 6:30 am

Post by kegf »

2 frost
что мог - сделал, времени почти не было :) не стал заморачиваться по этому поводу. как думаете - может сделать цвета как в highligt для php? пока времени нет, как будет - доделаю.

Offline
Posts: 876
Joined: Tue Jul 24, 2007 8:54 am

Post by Fr0sT »

kegf, думаю, над цветовой гаммой размышлять не надо - можно использовать ту, которая уже есть в других файлах подсветки. Плюс, глобальные переменные вида $_xxx тоже неплохо бы обозначать.
Locked