Elementor Source Code Widget
If you are writing a tutorial or documentation and want to show code snippets to your visitors, you can use this widget to display them in the text. The HT Mega Elementor Source Code widget helps you to show code snippets in a user-friendly way
Elementor Source Code Widget
With the Source Code widget, you can display any language code snippet on your website
![Section shape One](https://wphtmega.com/wp-content/uploads/2022/07/htmega-pro-info-shap1.png)
var jp = 'Red';
$('.target').on('click', function() {
$('.container').stop().addClass('active');
});
$('.remove').on('click', function() {
$('.container').stop().removeClass('active');
});
$('.addClass').on('click', function() {
$('.container').stop().addClass('active');
});
$('.remove').on('click', function() {
$('.container').stop().removeClass('active');
});
$('.target').on('click', function() {
$('.container').stop().addClass('active');
});
HT Mega Source Code Widget
The Source Code widget allows you to display any language code snippet
![Section shape One](https://wphtmega.com/wp-content/uploads/2022/07/htmega-pro-info-shap1.png)
/* Typography Style */
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
body {
font-family: "Montserrat", sans-serif;
font-size: 15px;
font-weight: 400;
font-style: normal;
line-height: 1.75;
position: relative;
visibility: visible;
overflow-x: hidden;
color: #696969;
background-color: #FFFFFF;
background-repeat: no-repeat;
background-position: top center;
}
.container {
max-width: 1200px;
}
.bg-gray {
background-color: #F6F6F6;
}
.section-space-ptb {
padding: 120px 0 90px;
}
.section-space-pt {
padding-top: 120px;
}
.section-space-pb {
padding-bottom: 90px;
}
Elementor Source Code Addon
Source Code widget helps you to show code snippets in your website
![Section shape One](https://wphtmega.com/wp-content/uploads/2022/07/htmega-pro-info-shap1.png)
/* Typography Style */
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
body {
font-family: "Montserrat", sans-serif;
font-size: 15px;
font-weight: 400;
font-style: normal;
line-height: 1.75;
position: relative;
visibility: visible;
overflow-x: hidden;
color: #696969;
background-color: #FFFFFF;
background-repeat: no-repeat;
background-position: top center;
}
.container {
max-width: 1200px;
}
.bg-gray {
background-color: #F6F6F6;
}
.section-space-ptb {
padding: 120px 0 90px;
}
.section-space-pt {
padding-top: 120px;
}
.section-space-pb {
padding-bottom: 90px;
}
Source Code Addon for Elementor
Source Code widget helps you to show code snippets in a user-friendly way
![Section shape One](https://wphtmega.com/wp-content/uploads/2022/07/htmega-pro-info-shap1.png)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Hello, Hero Text 1</h1>
<h2>Hello, Hero Text 2</h2>
<h3>Hello, Hero Text 3</h3>
<h4>Hello, Hero Text 4</h4>
<h5>Hello, Hero Text 5</h5>
<h6>Hello, Hero Text 6</h6>
<p>Lorem ipsum dolor sit amet consectetur,
autem rem quam hic reprehenderit exercitationem nemo eius? Sit!</p>
</body>
</html>
HT Mega Source Code Widget
Using the Source Code widget, you can display code snippets on your website
![Section shape One](https://wphtmega.com/wp-content/uploads/2022/07/htmega-pro-info-shap1.png)
/* Typography Style */
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
body {
font-family: "Montserrat", sans-serif;
font-size: 15px;
font-weight: 400;
font-style: normal;
line-height: 1.75;
position: relative;
visibility: visible;
overflow-x: hidden;
color: #696969;
background-color: #FFFFFF;
background-repeat: no-repeat;
background-position: top center;
}
.container {
max-width: 1200px;
}
.bg-gray {
background-color: #F6F6F6;
}
.section-space-ptb {
padding: 120px 0 90px;
}
.section-space-pt {
padding-top: 120px;
}
.section-space-pb {
padding-bottom: 90px;
}
Elementor Source Code Element
Show code snippets on your website with Source Code widget
![Section shape One](https://wphtmega.com/wp-content/uploads/2022/07/htmega-pro-info-shap1.png)
// How to change excerpt length
function mytheme_custom_excerpt_length( $length ) {
return 20;
}
add_filter( 'excerpt_length', 'mytheme_custom_excerpt_length', 999 );
Explore More Widgets
![HT Mega Elementor Addons](https://wphtmega.com/wp-content/uploads/2022/03/elements-heading-shape.png)
Get HT Mega Pro
Get up to 50% discount, Hurry-Up Limited Offer.
One Year
One Time
For 1 Website (Yearly Fee)
Personal
$69$49 USD
- 1 Website license
- 1 Year Support & Update
- 110+ Widgets
- 14 Essential Modules
- 760+ Blocks
- 170+ Ready Templates
- For personal & client websites
For 5 Websites (Yearly Fee)
Developer
$125$79 USD
- 5 Websites license
- 1 Year Support & Update
- 110+ Widgets
- 14 Essential Modules
- 760+ Blocks
- 170+ Ready Templates
- For personal & client websites
For 999 Websites (Yearly Fee)
Growth
$165$99 USD
- 999 Websites license
- 1 Year Support & Update
- 110+ Widgets
- 14 Essential Modules
- 760+ Blocks
- 170+ Ready Templates
- For personal & client websites
For 1 Website (One Time Fee)
Personal
$139$99 USD
- 1 Website license
- Free Update & Support
- 110+ Widgets
- 14 Essential Modules
- 760+ Blocks
- 170+ Ready Templates
- For personal & client websites
For 5 Websites (One Time Fee)
Developer
$298$149 USD
- For 5 Websites license
- Free Update & Support
- 110+ Widgets
- 14 Essential Modules
- 760+ Blocks
- 170+ Ready Templates
- For personal & client websites
For 999 Websites (One Time Fee)
Growth
$398$199 USD
- For 999 Websites license
- Free Update & Support
- 110+ Widgets
- 14 Essential Modules
- 760+ Blocks
- 170+ Ready Templates
- For personal & client websites