Notifications
Clear all

Is there no (Copy Code) button?

4 Posts
3 Users
0 Reactions
237 Views
Posts: 2
Customer
Topic starter
(@dennis-hosang)
Member
Joined: 3 years ago

I like syntax highlighter but with an addon focused on code, curious why it doesn't include the button that many sites have that people can click on a button typically found at top of code that says Copy Code which would put it in there clipboard so they can paste somewhere.

If I was designing Syntax Highlighter I would include the copy code button but make it available to possibly members (or certain groups only) and if its possible prevent anyone not a member of the group to not even highlight and copy code.  Would help force people to join and become a member if they want the code.

3 Replies
Astghik
Posts: 6102
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

Hi,

The developers are currently working on adding this option. I'll let you know once I get a response from them.

Reply
Posts: 74
Customer
(@tutrix)
Member
Joined: 5 years ago

Hi @dennis-hosang 

If you don't want to wait until the plugin has these functions.

You can use this plugin > Copy Anything to Clipboard

and this code to hide it from guests > Hide Pre Code for Guest

I have customized and modified this a bit in my forum, it currently looks like this

Copy Code
Reply
Astghik
Posts: 6102
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

The new version of the addon is ready.

Reply
Share:
Scroll to top