Code Block

Code Examples in CSS, HTML, JavaScript, PHP, C#, and More

Play Video

The user can copy source code quickly with a Copy button.

The code example can be expanded with the Enlarge button.

Choose a language and preset to control how language keywords are colored and bolded.

Our Code Blocks Widget has eleven presets to choose from, allowing for a custom look for the software snippets.

PHP
				/**
 * This is a longer Comment Example to show case  
 * the expand button
 *
 * @param    object  $post_type_params The object to convert
 * @return   string
 */
 function hell_world( $post_type_params ) {             
     $post_type_params['hierarchical'] = true;
     if ( empty($post_type_params) ) {
         helper();
     }
     return 'success';
 }
			
PHP
				//hello world function
 function hell_world( $post_type_params ) {             
     $post_type_params['hierarchical'] = true;
     if ( empty($post_type_params) ) {
         helper();
     }
     return 'success';
 }
			
PHP
				//hello world function
 function hell_world( $post_type_params ) {             
     $post_type_params['hierarchical'] = true;
     if ( empty($post_type_params) ) {
         helper();
     }
     return 'success';
 }
			
PHP
				//hello world function
 function hell_world( $post_type_params ) {             
     $post_type_params['hierarchical'] = true;
     if ( empty($post_type_params) ) {
         helper();
     }
     return 'success';
 }
			
PHP
				//hello world function
 function hell_world( $post_type_params ) {             
     $post_type_params['hierarchical'] = true;
     if ( empty($post_type_params) ) {
         helper();
     }
     return 'success';
 }
			
PHP
				//hello world function
 function hell_world( $post_type_params ) {             
     $post_type_params['hierarchical'] = true;
     if ( empty($post_type_params) ) {
         helper();
     }
     return 'success';
 }
			
PHP
				//hello world function
 function hell_world( $post_type_params ) {             
     $post_type_params['hierarchical'] = true;
     if ( empty($post_type_params) ) {
         helper();
     }
     return 'success';
 }
			
PHP
				//hello world function
 function hell_world( $post_type_params ) {             
     $post_type_params['hierarchical'] = true;
     if ( empty($post_type_params) ) {
         helper();
     }
     return 'success';
 }
			
PHP
				//hello world function
 function hell_world( $post_type_params ) {             
     $post_type_params['hierarchical'] = true;
     if ( empty($post_type_params) ) {
         helper();
     }
     return 'success';
 }
			
PHP
				//hello world function
 function hell_world( $post_type_params ) {             
     $post_type_params['hierarchical'] = true;
     if ( empty($post_type_params) ) {
         helper();
     }
     return 'success';
 }
			
PHP
				//hello world function
 function hell_world( $post_type_params ) {             
     $post_type_params['hierarchical'] = true;
     if ( empty($post_type_params) ) {
         helper();
     }
     return 'success';
 }
			
  loading=
Learn More

Check out our Documentation on how to use and configure this Widget

Learn More
 srcset="https://www.creative-addons.com/wp-content/uploads/2020/10/headphones-icon-150x150.png 150w, https://www.creative-addons.com/wp-content/uploads/2020/10/headphones-icon-300x300.png 300w, https://www.creative-addons.com/wp-content/uploads/2020/10/headphones-icon.png 417w" loading=
Contact Us

Do you have more questions? Contact our friendly team.

Contact us

Creative addons by the team who created Echo Knowledge Base