i have to implemented add publish system much like other blogging system for example wordpress.

i want an element that user can place the code when they want and syntaxhighlighter demonstrate to them in format.

how it's possible. what factor i have to use to get this done.

You should use Javascript based syntax highlighter for example this one.