Title: Multiple Programming Languages In a Single Editor
Last modified: January 29, 2023

---

# Multiple Programming Languages In a Single Editor

 *  [Abu Zar Mishwani](https://wordpress.org/support/users/itsabuzarr/)
 * (@itsabuzarr)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/)
 * Hello,
 * I’ve been using this plugin since last year, and it’s mind-blowing. The only 
   thing I’d recommend that will add more value to the plugin is that it should 
   have the option to add multiple languages on a single Code Block. As you can 
   see in the screenshot below:
 * ![](https://i0.wp.com/abuzar.me/wp-content/uploads/2023/01/example.png?resize
   =537%2C342&ssl=1)
 * One program has been written in multiple programming languages in the above screenshot.
   Instead of using different blocks, all are combined in a single Code Block and
   can be easily switched between other programming languages.
 * Please add this feature to the plugin!
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmultiple-programming-languages-in-a-single-editor%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/page/2/?output_format=md)

 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/#post-16418290)
 * The feature is already available since the initial EnlighterJS versions. It’s
   called “codegroup” – the detailed usage is described within the docs: [https://github.com/EnlighterJS/documentation/blob/master/editing/TinyMCE.md](https://github.com/EnlighterJS/documentation/blob/master/editing/TinyMCE.md)
 *  Thread Starter [Abu Zar Mishwani](https://wordpress.org/support/users/itsabuzarr/)
 * (@itsabuzarr)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/#post-16418306)
 * Ohh, Thank you! I’m glad it’s already there, but I’ve not found it. One more 
   thing. Can I add a vertical and horizontal scroll bar, as some code might be 
   too long? So, in that case, if it shows 40 lines of code, for example, and then
   for the other part of the code, the user can scroll. The same is the case for
   horizontal scroll because some comments are long, and on mobile devices, they’re
   cropped, and only half the comment shows to the user. Also, is there any way 
   I can hide the line numbers only on mobile?
    -  This reply was modified 3 years, 4 months ago by [Abu Zar Mishwani](https://wordpress.org/support/users/itsabuzarr/).
 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/#post-16418327)
 * just read the docs 😉
 * regarding mobile optimization: in this case you should create a custom theme (
   see the docs for details) and add customized css media queries. in case you’re
   already familar with less-css you can use the EnlighterJS sources including the
   helper functions
 *  Thread Starter [Abu Zar Mishwani](https://wordpress.org/support/users/itsabuzarr/)
 * (@itsabuzarr)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/#post-16418334)
 * Can you please send me the Documentation URL where you’ve guided about the Scroll
   Bar?
 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/#post-16418441)
 * horizontal: [https://github.com/EnlighterJS/documentation/blob/master/development/Options.md#textOverflow](https://github.com/EnlighterJS/documentation/blob/master/development/Options.md#textOverflow)(
   via wp options)
 * vertical: [https://github.com/EnlighterJS/documentation/blob/master/Tweaks.md#set-minimal-height-for-single-line-codeblocks](https://github.com/EnlighterJS/documentation/blob/master/Tweaks.md#set-minimal-height-for-single-line-codeblocks)(
   via custom css)
 *  Thread Starter [Abu Zar Mishwani](https://wordpress.org/support/users/itsabuzarr/)
 * (@itsabuzarr)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/#post-16418504)
 * I’ve achieved the horizontal scroll by using the below custom CSS. However, I
   failed to get the vertical scroll. 😢 Please give me the CSS code to limit the
   lines that show vertically because some of my code has more than 150+ lines of
   code, which is too much, so if only 40 or 50 lines are displayed, and then if
   someone would like to continue, he could scroll.
 *     ```wp-block-code
       @media only screen and (max-width: 767px) {
       .enlighter-code,
       .enlighter {
       overflow: auto;
       }
       }
       ```
   
 * Thanks in advance! ❤️
 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/#post-16418593)
 * you should really take a look into related topics 😛
 * [https://github.com/EnlighterJS/Plugin.WordPress/issues/331](https://github.com/EnlighterJS/Plugin.WordPress/issues/331)
 *  Thread Starter [Abu Zar Mishwani](https://wordpress.org/support/users/itsabuzarr/)
 * (@itsabuzarr)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/#post-16418771)
 * Thank you so much! ❤️❤️
 *  Thread Starter [Abu Zar Mishwani](https://wordpress.org/support/users/itsabuzarr/)
 * (@itsabuzarr)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/#post-16420125)
 * Hello again!
 * Yesterday I’ve almost got the issue solved because of your help, but there are
   still a few minor issues coming up. 😢
 * The issue is with the Horizontal Scroll. It works very well on mobile devices,
   and on Desktop, it is not scrolling to the right completely. The statement or
   comment is long enough, but it only scrolls to the right a bit, as you can check
   in the image below.
 * ![](https://i0.wp.com/abuzar.me/wp-content/uploads/2023/01/Horizontal-Scroll-
   Error.gif?ssl=1)
 * I’ve added the below code as Custom CSS, but it didn’t work the way it should.
   Instead, in the Plugin settings, there is an option in the Appearance Menu, “
   text-overflow;” I’ve selected the “Add Scrollbar” option, and it’s working fine
   but still showing some issues. 😐
 *     ```wp-block-code
       // enable horizontal scroll
       EnlighterJS.enlight(myElement, {
           textOverflow: 'scroll'
       })
       ```
   
 * **You can check the issue on this Page:** [https://techabu.co/ict/fcfs-preemptive-scheduling-c-program-example/](https://techabu.co/ict/fcfs-preemptive-scheduling-c-program-example/)
 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/#post-16420370)
 * the “code” is javascript and wont work as css… the wordpress plugin takes care
   of it and provides the option “text-overflow” (horizontal)
 * i’m sorry but it looks like a theme/css issue …try it in a “clean” wordpress 
   environment and it should work as expected. i didn’t have the time to debug third
   party issues
 *  Thread Starter [Abu Zar Mishwani](https://wordpress.org/support/users/itsabuzarr/)
 * (@itsabuzarr)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/page/2/#post-16428588)
 * Hello! I’ve added some custom CSS and fixed that issue. I was just wondering 
   where I can change the “Copy” button label to “Copy code”?
 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/page/2/#post-16428627)
 * it’s not possible via the CE version of WordPress Enlighter plugin. it can be
   set in the pro/enterprise editions or via custom js code
 *  Thread Starter [Abu Zar Mishwani](https://wordpress.org/support/users/itsabuzarr/)
 * (@itsabuzarr)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/page/2/#post-16440445)
 * Hello! I’ve used the code that you provided to trim long code. But now, the issue
   is the horizontal scroll bar doesn’t appear until we scroll to the end, as you
   can see in the below image:
 * ![](https://i0.wp.com/abuzar.me/wp-content/uploads/2023/02/Scrollbar-Issue.gif?
   ssl=1)
 * Please provide me with some CSS code to fix this or guide me to find a solution
   to this minor issue.
 * You can find the long code and the issue on this page: [https://techabu.co/ict/fcfs-preemptive-scheduling-c-program-example/](https://techabu.co/ict/fcfs-preemptive-scheduling-c-program-example/)
 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/page/2/#post-16440491)
 * take a look into the enlighter-collapse class. i didn’t have time to provide 
   custom solutions sry
 *  Thread Starter [Abu Zar Mishwani](https://wordpress.org/support/users/itsabuzarr/)
 * (@itsabuzarr)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/page/2/#post-16441071)
 * [@andi-dittrich](https://wordpress.org/support/users/andi-dittrich/) I understand
   you’ll be too busy, but I don’t think it’ll take much of your time. The issue
   is general, and if someone else using this plugin added the vertical scroll, 
   they might face the same problem and ask you. And I think you can solve this 
   minor issue within a few minutes because you’re the developer of this plugin.
   It needs a few lines of CSS code, but I can’t do this since I’m not a CSS expert.
 * Just like you’ve provided code to trim long code and add a vertical scrollbar
   in the same way if you can give us CSS code that will show the horizontal scrollbar?
   So users don’t have to scroll to the end of the code to see the horizontal code.
 * Please take a few minutes and look into this. And [@andi-dittrich](https://wordpress.org/support/users/andi-dittrich/),
   it’s a request if you are not providing the CSS code. Don’t approve this comment.
 * Thank you in advance! 😊

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/page/2/?output_format=md)

The topic ‘Multiple Programming Languages In a Single Editor’ is closed to new replies.

 * ![](https://ps.w.org/enlighter/assets/icon-256x256.png?rev=1215872)
 * [Enlighter - Customizable Syntax Highlighter](https://wordpress.org/plugins/enlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/enlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enlighter/reviews/)

 * 26 replies
 * 2 participants
 * Last reply from: [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/multiple-programming-languages-in-a-single-editor/page/2/#post-16510735)
 * Status: not a support question