How to expand and collapse code snippet more flexible?
-
Hello, experts
I’m extremely fond of looking like cool’s function – quoted code block on this WordPress post http://orasql.org/2013/05/22/sqlplus-tips-6-colorizing-output/.
The following are my 2 screenshots,
(1) https://screenshots.firefox.com/gCcikJqxUIs97aU8/orasql.org
(2) https://screenshots.firefox.com/U7ZiyC9tw8FBPKMC/orasql.orgI’ve also want to implement that function on my blog – https://quanwenzhao.wordpress.com/
How to expand and collapse code snippet more flexible?
Has everyone better ideas? Thanks a lot.
Best Regards
Quanwen ZhaoThe blog I need help with is: (visible only to logged in users)
-
Hi
I’ve used the Enlighter plugin for code snippets with great success
https://wordpress.com/plugins/enlighter
but it doesn’t give you the the expand and collapse function you are after.You could try including the code snippet in an accordion panel such as one of these offerings:
https://wordpress.com/plugins?s=accordion
or even better a sliding panel such as this one:
https://wordpress.com/plugins/show-hidecollapse-expandI hope that helps or at least gives you something to get started with.
-
- The topic ‘How to expand and collapse code snippet more flexible?’ is closed to new replies.