| View previous topic :: View next topic |
| Author |
Message |
MMM-304 Expert Cheater
Reputation: 0
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
|
Posted: Sat Jun 26, 2021 1:12 am Post subject: Adding New Syntax Highlighter |
|
|
Can I add another syntax highlighter in CE, (like the one of LUA and ASM that synedit use)?
If yes, How?
Another question: Where can i located default syntax highlights for LUA methods and ASM instructions in CE Directory?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25812 Location: The netherlands
|
Posted: Sat Jun 26, 2021 7:58 am Post subject: |
|
|
If you use the exact same freepascal and lazarus build as i use and then inject a dll with the new synHighlighter inherited class then you can pass that to the highlighter of a synedit
but which synedit highlighter do you wish to add?
The synedit colors can be modified using the syntax highliger preferences window you can get in autoassembler and lua engine
the defaults are when you remove the registry entries for them
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
MMM-304 Expert Cheater
Reputation: 0
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
|
Posted: Sat Jun 26, 2021 10:35 am Post subject: |
|
|
| Dark Byte wrote: |
but which synedit highlighter do you wish to add?
|
it is not a language, just for regular text (specific syntax that i use in reversing asm)
| Dark Byte wrote: |
The synedit colors can be modified using the syntax highliger preferences window you can get in autoassembler and lua engine
|
Yea, im familier with that. I actually, created my own synedit (as a matter of fact, i replaced the regular Memo1 of Comment form with synedit cuz I use it a lot for reversing.). So I wanted to add a new syntax for syn edit.
I mean i dont want to compile my own CE, i just wanted to know if there is a way to add a syntax highlighter with lua script of whatnot
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25812 Location: The netherlands
|
Posted: Sat Jun 26, 2021 12:18 pm Post subject: |
|
|
for autoassembler you can use registerAutoAssemblerCommand
and for lua there is registerLuaFunctionHighlight
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
MMM-304 Expert Cheater
Reputation: 0
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
|
Posted: Sun Jun 27, 2021 4:13 am Post subject: |
|
|
Hmm.. So, no way for creating your own highlighter for now?
Another question, I actually wanted to make a listview with headers instead of synedit, but when saving CTs it saves the text in Memo1 ,right?
Can I manipulate CE to save the contents of listview with multiple headers (tems and subitems ) in the CT as well?
I mean it is easy to transfer the text from synedit to Memo1 then read-back when CT is loaded, but listview work differently right?
|
|
| Back to top |
|
 |
|