19 mensajes Página 1 de 1
Hi all
i used an object plugin that name is "Scintilla" to create myself code creator
Scintilla is created by http://www.amsplugins.com and it is so powerful
After i initialize Scintilla for Lua, every things is OK
But unfortunately i have problem with this plugin
When i write Unicode String like bellow Scintilla not show that correctly

Imagen

Can everybody help me to fix this problem ??
So thanks

Scintilla Download link with Example :
http://amsplugins.com/details.asp?id=115

Screenshot
Imagen
Imagen
life is beauty
used this Page 4 any Help http://www.scintilla.org/ScintillaDoc.html
Imagen
Hi abood
i so try to send message with Scintilla.SendMessage command to support Unicode but i failed
like :
Scintilla.SendMessage("Editor", SCI_SETCODEPAGE, SC_CP_UTF8, 0);
Imagen
life is beauty
Ask the Owner of this Plugin "Reteset" if you can

or you can used SCN_CHARADDED and Some of
if ...... then ..... end
Imagen
hi
reteset.net is closed and i can not ask to author
what is this command SCN_CHARADDED ??
Imagen
life is beauty
mahdi1993 escribió: hi
reteset.net is closed and i can not ask to author
what is this command SCN_CHARADDED ??


https://www.facebook.com/RetesetSoftware/
Parsed in 0.002 seconds, using GeSHi 1.0.8.9


http://www.scintilla.org/MyScintillaDoc.html#SCN_CHARADDED
Parsed in 0.002 seconds, using GeSHi 1.0.8.9
Imagen
i can not compatible scintilla plugin with utf-8
but i write code editor with both scintilla and scilexer.dll
now i have other problem
how i can fold if, function and other reserve keys ?
Imagen
Imagen
life is beauty
mahdi1993 escribió: i can not compatible scintilla plugin with utf-8
but i write code editor with both scintilla and scilexer.dll


Tell me how this problem has been resolved Put an apz

mahdi1993 escribió: now i have other problem
how i can fold if, function and other reserve keys ?

--
Scintilla.SendMessage("Plugin1",tabIndex, "num",SCI_SETPROPERTY, "str", "fold", "str", "1");
Scintilla.SendMessage("Plugin1",tabIndex, "num",SCI_SETPROPERTY, "str", "fold.compact", "str", "0");
Scintilla.SendMessage("Plugin1",tabIndex, "num",SCI_SETPROPERTY, "str", "fold.preprocessor", "str", "1");
Scintilla.SendMessage("Plugin1",tabIndex, "num",SCI_SETPROPERTY, "str", "fold.comment", "str", "1");
Imagen
Hi abood
i used Scintilla object plugin to manage editor tab
but for code editor, i try to create code editor with scilexer.dll
when you create code editor with scilexer.dll, that support utf-8 unicode
this is simple code editor that was created with scilexer.dll
https://www.mediafire.com/file/ogpob0gq99cqu5f/SciLexer.apz
Imagen
life is beauty
mahdi1993 escribió: Hi abood
i used Scintilla object plugin to manage editor tab
but for code editor, i try to create code editor with scilexer.dll
when you create code editor with scilexer.dll, that support utf-8 unicode
this is simple code editor that was created with scilexer.dll
https://www.mediafire.com/file/ogpob0gq99cqu5f/SciLexer.apz


hi mahdi
I know this perfectly and I know the difference between them
But you said that the problem you solved and put this picture
Imagen


So I asked you for your example shown in the image above

mahdi1993 escribió: simple code editor that was created with scilexer.dll



This is not your example Which is developed. I own this file since a very long time and everyone is also owned that :)

Put your your example shown in the image above :awesome-1417754492:
and To ask any question you can put in this section Dudas not in Plugins
Imagen
Imagen
life is beauty
Hi all
@abood1987
i put below code in "OnSetup" event of "Scintilla Object Plugin" to show suggest list (Auto Complete).
it work currectly
but i want know how can i set icon for suggested items ???
thanks to all

if (e_Notify.code == SCN_CHARADDED) then

cp = Scintilla.SendMessage("Plugin1", e_TabID, "num", SCI_GETCURRENTPOS, "num", 0, "num", 0);
ws = Scintilla.SendMessage("Plugin1", e_TabID, "num", SCI_WORDSTARTPOSITION, "num", cp, "bool", true);
entered = cp-ws;

if (entered > 0) then

ac = Scintilla.SendMessage("Plugin1", e_TabID, "bool", SCI_AUTOCACTIVE, "num", 0, "num", 0);

if (not ac) then
Scintilla.SendMessage("Plugin1", e_TabID, "num", SCI_AUTOCSETIGNORECASE, "bool", true, "bool", true);
str = "application math string";
Scintilla.SendMessage("Plugin1", e_TabID, "num", SCI_AUTOCSHOW, "num", entered, "str", str);
end

end
end
 
Parsed in 0.005 seconds, using GeSHi 1.0.8.9
Imagen
life is beauty
mahdi1993 escribió: Hi all
@abood1987
i put below code in "OnSetup" event of "Scintilla Object Plugin" to show suggest list (Auto Complete).
it work currectly
but i want know how can i set icon for suggested items ???
thanks to all

if (e_Notify.code == SCN_CHARADDED) then
cp = Scintilla.SendMessage("Plugin1", e_TabID, "num", SCI_GETCURRENTPOS, "num", 0, "num", 0);
ws = Scintilla.SendMessage("Plugin1", e_TabID, "num", SCI_WORDSTARTPOSITION, "num", cp, "bool", true);
entered = cp-ws;
if (entered > 0) then
ac = Scintilla.SendMessage("Plugin1", e_TabID, "bool", SCI_AUTOCACTIVE, "num", 0, "num", 0);
if (not ac) then
Scintilla.SendMessage("Plugin1", e_TabID, "num", SCI_AUTOCSETIGNORECASE, "bool", true, "bool", true);
str = "application math string";
Scintilla.SendMessage("Plugin1", e_TabID, "num", SCI_AUTOCSHOW, "num", entered, "str", str);
end
end
end
 
Parsed in 0.004 seconds, using GeSHi 1.0.8.9


Welcome mahdi shams :handshake:
Ok Lets go :

First : your Code Moust Be Put at " On Notify " not at "OnSetup" event as you say Ok ? Because you Used e_Notify.code and that is in " On Notify " event ok ?

Second : you Need to Show Icon With writing any String Look at the Right Way as follows :

look at this Page 4 Used any icon From there :

Contenido Oculto: ON
	<br />Usted necesita responder en este tema para ver el contenido oculto.


Contenido Oculto: ON
	<br />Usted necesita responder en este tema para ver el contenido oculto.


then You Can Used that Code For Example in any Button 4 test it Ok ? :

Contenido Oculto: ON
	<br />Usted necesita responder en este tema para ver el contenido oculto.


and remember that :rock: this is called User List .
Imagen
So thanks abood for your help
but i still have set icon for user list
because i used your code and give below result
Imagen
can you help me with put an apz sample ??
Imagen
life is beauty
hi abood
sooo thanks for your big help

i resilved my problem
i edit your code and give below result :
Imagen

but only icons that is in http://www.scintilla.org/Icons.html work currectly !!
and when i design my own self png icons 16*16 and convert it to xpm they will not show in user list !!

after of all
i have good news for you !!
i can write some simple code to compatible "Scintilla Object Plugin" with utf-8 chars
now, i working on it to fix supposition bugs
ultimate version will soon made and i put it in this forum
can you help me to done it ??
i mean help me to create advanced user list for it !!
exactly like ams plugin maker user list !!
for example when user pressed "A" then, editor show user list that contain "Application Audio"
and when select once for example : "Application" and pressed "." then, editor show user list that contain "Exit ExitScript ..."
are you ready ??

if (e_Notify.code == SCN_CHARADDED) then

a = [[
string of xmp format gem_blue
]];

b = [[
string of xmp format gem_red
]];

cp = Scintilla.SendMessage("Plugin1", e_TabID, "num", SCI_GETCURRENTPOS, "num", 0, "num", 0);
ws = Scintilla.SendMessage("Plugin1", e_TabID, "num", SCI_WORDSTARTPOSITION, "num", cp, "bool", true);
fp = cp-ws;

Scintilla.SendMessage("Plugin1", e_TabID, "num", SCI_REGISTERIMAGE, "num", 0, "str", a);
Scintilla.SendMessage("Plugin1", e_TabID, "num", SCI_REGISTERIMAGE, "num", 1, "str", b);

Suggest = "app?0 math?1";

if (fp > 0) then

ac = Scintilla.SendMessage("Plugin1", e_TabID, "bool", SCI_AUTOCACTIVE, "num", 0, "num", 0);

if (not ac) then
Scintilla.SendMessage("Plugin1", e_TabID, "num", SCI_AUTOCSETIGNORECASE, "bool", true, "bool", true);
Scintilla.SendMessage("Plugin1", e_TabID, "num", SCI_AUTOCSHOW, "num", fp, "str", Suggest);
end

end
end
 
Parsed in 0.006 seconds, using GeSHi 1.0.8.9
Imagen
life is beauty
mahdi1993 escribió: after of all
i have good news for you !!
i can write some simple code to compatible "Scintilla Object Plugin" with utf-8 chars
now, i working on it to fix supposition bugs
ultimate version will soon made and i put it in this forum


Oh really ?
tell me How ?
Imagen
hello abood
yes. really i can compatible it with utf-8 !!
a few days ago i think this should be very hard
but i was wrong
it is so easy
if you wait jus for 2 weeks i put full example with apz in this topic
after that, i need your help to complete it

be patient my friend

http://www.mediafire.com/convkey/f292/254a7nd0nwy4jauzg.jpg
Parsed in 0.002 seconds, using GeSHi 1.0.8.9
Imagen
life is beauty
hello abood
yes. really i can compatible it with utf-8 !!
a few days ago i think this should be very hard
but i was wrong
it is so easy
if you wait jus for 2 weeks i put full example with apz in this topic
after that, i need your help to complete it

be patient my friend

Imagen
Imagen
life is beauty
mahdi1993 escribió: after of all
i have good news for you !!
i can write some simple code to compatible "Scintilla Object Plugin" with utf-8 chars
now, i working on it to fix supposition bugs
ultimate version will soon made and i put it in this forum


mahdi1993 escribió:

if you wait jus for 2 weeks i put full example

be patient my friend



I do not need to know how :)
I know very well that ....... Imagen this plugin is supports Arabic or any other language without need any to modify this current version of this plugin :dancing:

You do not need another version .... really The current version is very very good Imagen
Imagen
19 mensajes Página 1 de 1

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 1 invitado