Introduction

Use the code shortcode anytime you want to include code or preformatted text. The code can be shown in a block or inline. You can control the font color, background, and border radius (rounded corners).

Example

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo ‘<p>Hello World</p>’; ?>
</body>
</html>

You can also customize the colors and border radius.

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo ‘<p>Hello World</p>’; ?>
</body>
</html>

Inline

The following uses the code shortcode to shows the code inline within the text.

Lorem ipsum dolor sit amet, consectetur adipiscing elit inline code integer laoreet mauris a augue bibendum with color blandit.

Explore More Shortcodes

[intense_content_section]
<h2>Introduction</h2>
Use the code shortcode anytime you want to include code or preformatted text. The code can be shown in a block or inline. You can control the font color, background, and border radius (rounded corners).
[/intense_content_section]
[intense_content_section background_type="color" background_color="#f9f9f9" border_top="1px solid #ededed" border_bottom="1px solid #ededed"]
<h2>Example</h2>
[intense_code]
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
[/intense_code]

You can also customize the colors and border radius.

[intense_code color="primary" font_color="#ffffff" border_radius="5px"]
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
[/intense_code]
[/intense_content_section]
[intense_content_section border_bottom="1px solid #ededed"]
<h2>Inline</h2>

The following uses the code shortcode to shows the code inline within the text.

Lorem ipsum dolor sit amet, consectetur adipiscing elit [intense_code inline="1"]inline code[/intense_code] integer laoreet mauris a augue bibendum [intense_code inline="1" color="#333" font_color="#ffffff"]with color[/intense_code] blandit.
[/intense_content_section]

[intense_snippet snippet_id="Child Theme | Shortcodes/footer" snippet_title="Shortcode Page Footer"]