how to do toggle highlighting, open in new window, select all?

i m showing data in textarea.. i hv 3 buttons below the textarea.

 toggle highlighting, open in new window, select all

so that any user can easily select or highlight it. how to do this??
yogeshbansal1985Asked:
Who is Participating?
 
darren-w-Commented:
Sorry,

if you take a look at the source on the ee page with the code block you will see this is the code in the background:

<div class="codeSnippetButtons"><a class="toggleHighlighting" href="javascript:toggleHighlighting('codeSnippet8119816');">Toggle Highlighting</a>

<a class="openInNewWindow" href="/codeSnippetPopup.jsp?csid=8119816" target="_blank">Open in New Window</a>

<a class="selectAll" href="javascript:selectElementById('codeSnippet8119816');">Select All</a></div>

1. uses javascript.
2. opens the code in a new tab/page
3. uses javascript

I believe you could use parts of http://alexgorbatchev.com/SyntaxHighlighter/ to display the code to allow users to select and easily highlight.


0
 
yogeshbansal1985Author Commented:
it is same as experts exchange does toggling, open in new window and select all.
0
 
darren-w-Commented:
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
yogeshbansal1985Author Commented:
where is the functionality of toggle highlighting, select all given in this page?? i can't find it.
0
 
yogeshbansal1985Author Commented:
thanks dareen-w sir. this is exactly i needed. thks a lot.

sir where how can i see the code of included classes
0
 
yogeshbansal1985Author Commented:
i don't know where can i get the css used and class used.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.