FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » FUDforum 3.0+ » Enhanced code blocks (FUDforum 3 new feature of the day)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Enhanced code blocks [message #161003] Tue, 10 November 2009 06:42 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
Starting with FUDforum 3.0.0, code blocks are rendered with Select all and Show/ hide controls. These controls are injected with JavaScript. As a result, users with JavaScript disabled will not see them.

Here is an example:

// Initialize plugin
plugin_add_hook('BBCODE2HTML', 'plugin_wikilinks_tag_to_html');
plugin_add_hook('HTML2BBCODE', 'plugin_wikilinks_html_to_tag');


* Click "Select all" and Control-C to quickly copy the code into the buffer, ready to be pasted wherever you need it.

* Hit "Show/ hide" to hide massive code hunks or bring them back into focus.
[Message index]
 
Read Message
Read Message icon6.gif
Previous Topic: Enhanced quoting
Next Topic: Quick Reply Editor
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 11:56:18 GMT 2024

Total time taken to generate the page: 0.04218 seconds