Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Adding New Syntax Highlighter

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Sat Jun 26, 2021 1:12 am    Post subject: Adding New Syntax Highlighter Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25812
Location: The netherlands

PostPosted: Sat Jun 26, 2021 7:58 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Sat Jun 26, 2021 10:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25812
Location: The netherlands

PostPosted: Sat Jun 26, 2021 12:18 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Sun Jun 27, 2021 4:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites