Sometimes in tutorial blog or in some other cases it's needed to show html/php code onto website.
Suppose you want to show <?php echo wp_ruby_1(); ?> then you can use the below codes
system1: <pre><?php echo wp_ruby_1(); ?> </pre>
or
system2: <?php highlight_string('<?php echo wp_ruby_2(); ?>'); ?>
System 1 can be used for both HTML/PHP but system 2 can be used for only php code
Suppose you want to show <?php echo wp_ruby_1(); ?> then you can use the below codes
system1: <pre><?php echo wp_ruby_1(); ?> </pre>
or
system2: <?php highlight_string('<?php echo wp_ruby_2(); ?>'); ?>
System 1 can be used for both HTML/PHP but system 2 can be used for only php code
No comments:
Post a Comment