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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

yogeshbansal1985Author Commented:
it is same as experts exchange does toggling, open in new window and select all.
0
darren-w-Commented:
0
yogeshbansal1985Author Commented:
where is the functionality of toggle highlighting, select all given in this page?? i can't find it.
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.