News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

CodeSnippets how to set default hilight?

Started by Loaden, June 02, 2009, 04:24:46 AM

Previous topic - Next topic

Loaden

Have some option set default hilight to c/c++, but not plain text?
because i am c/c++ programmer, i don't use other language.

please set some option: let's user set own default hilight, thanks!

ollydbg

Apart from that, some standard C++ headers files, they don't have any file extention like *.h.

So, if a default highlight can be set, these kind of header file can be shown quiet good.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Loaden

I found: if not a file link, it's can't hilight item:


[attachment deleted by admin]

JGM


ollydbg

Quote from: JGM on June 02, 2009, 08:27:04 AM
Edit -> Highlight Mode

Thanks, I try to set the text highlight for iostream, but Edit->syntax highlight, I can't find there is an option for these kind of files. (With no extension) .

See screenshot


[attachment deleted by admin]
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

JGM

I mean the Edit menu there in Highlight Mode you can select the syntax you want look how well it works.

On attached screenshot

[attachment deleted by admin]

ollydbg

oh, Yes, Thanks.
I have made a mistake :(, I treat "Edit->hightlight" as "Settings->Editor->syntax hightlight" :D.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

JGM

Quote from: ollydbg on June 02, 2009, 09:04:24 AM
oh, Yes, Thanks.
I have made a mistake :(, I treat "Edit->hightlight" as "Settings->Editor->syntax hightlight" :D.

Yeah i thought that  :D, that kind of things happen  :lol:

Loaden

Quote from: JGM on June 02, 2009, 08:52:36 AM
I mean the Edit menu there in Highlight Mode you can select the syntax you want look how well it works.

On attached screenshot

Thanks!
But, I am talking about CodeSnippets , not the CB.