how to use Scintilla.DLL

The discussion area for general programming languages C/C++ Delphi Lua and others
Post Reply
madolak
Registered User
Posts: 35
Joined: Sun Sep 08, 2013 9:59 am
Contact:

how to use Scintilla.DLL

Post by madolak »

hello my friends...
how can create a Source Editing with Scintilla.DLL???
Scintilla.DLL have one function that is "Scintilla_DirectFunction" but i don't no how can i could create a code editor in my autoplay application???
i need to learn it strongly!!!
who can help me with a sample?
i thank for your help
karim
Registered User
Posts: 8
Joined: Wed Jan 15, 2014 9:53 pm

Post by karim »

Can you Upload this dll who is named Scintilla.DLL ?
madolak
Registered User
Posts: 35
Joined: Sun Sep 08, 2013 9:59 am
Contact:

Post by madolak »

hello karim
yes, i upload it
Scintilla is a dll to create script editor for programming languages
a example software that use Scintilla dll is "notepad++"
You do not have the required permissions to view the files attached to this post.
karim
Registered User
Posts: 8
Joined: Wed Jan 15, 2014 9:53 pm

Post by karim »

Oh yes it is the same as used with the Scintilla Object Plugin Created by reteset

look at this Plugin in this Forum http://www.amsplugins.com/details.asp?id=115
madolak
Registered User
Posts: 35
Joined: Sun Sep 08, 2013 9:59 am
Contact:

Post by madolak »

thank you karim
i look that object plugin
but i want to learn how can i create a "Script editor" whit Scintilla.dll for other language
for example: build a "script editor" that work on "HTML" code
karim
Registered User
Posts: 8
Joined: Wed Jan 15, 2014 9:53 pm

Post by karim »

Of course with this Plugin can do this by :

Code: Select all

Scintilla.SendMessage("Plugin1", 1, "num", SCI_SETLEXER, "num", SCLEX_HTML, "num", 0);
By the above code will work on processing the Plugin for the reception HTML Codes

and Create a HTML keywords in Global Function to used it
madolak
Registered User
Posts: 35
Joined: Sun Sep 08, 2013 9:59 am
Contact:

Post by madolak »

thank you so much karim
it work correctly
i donwload "Scintilla" example from amsplugins and look that's scripts.
i replace this script in global functions:
Scintilla.SendMessage("Plugin1",tabIndex, "num",SCI_SETLEXER,"num", SCLEX_LUA,"num", 0);
with:
Scintilla.SendMessage("Plugin1", 1, "num", SCI_SETLEXER, "num", SCLEX_HTML, "num", 0);

and change any "Lua" to "HTML" but it have an problem!
my editor can not show "+" button in the left of editor when i write html keywords
for example in lua editor when i write "if" a "+" button show in left of editor
can you put the example for me that use Scintilla object plugin for create editor one of the other programming language
HTML script editor is very good sample
very thanks...
Post Reply