Enable syntax highlighting in Mkdocs

master
Skylar Ittner 6 years ago
parent 0d30870882
commit fe61865a02

@ -151,7 +151,7 @@ Below is a minimal functional `default` template that fulfills the above require
#### Plain Text #### Plain Text
```html ```php
<p class="sw-text" data-component="lead"> <p class="sw-text" data-component="lead">
<?php get_component("lead"); ?> <?php get_component("lead"); ?>
</p> </p>
@ -159,7 +159,7 @@ Below is a minimal functional `default` template that fulfills the above require
#### HTML #### HTML
```html ```php
<div class="sw-editable" data-component="component-name"> <div class="sw-editable" data-component="component-name">
<?php get_component("component-name"); ?> <?php get_component("component-name"); ?>
</div> </div>
@ -167,7 +167,7 @@ Below is a minimal functional `default` template that fulfills the above require
#### Complex #### Complex
```html ```php
<?php <?php
if (!is_complex_empty("complex-component-name")) { if (!is_complex_empty("complex-component-name")) {
$comp = get_complex_component("complex-component-name", null, ['icon', 'image', 'link', 'text']); $comp = get_complex_component("complex-component-name", null, ['icon', 'image', 'link', 'text']);
@ -191,7 +191,7 @@ if (!is_complex_empty("complex-component-name")) {
#### List of social media links #### List of social media links
```html ```php
<?php <?php
$social = get_socialmedia_urls(); $social = get_socialmedia_urls();
foreach ($social as $s) { foreach ($social as $s) {
@ -208,7 +208,7 @@ foreach ($social as $s) {
``` ```
#### Contact Information #### Contact Information
```html ```php
<?php <?php
format_special( format_special(
get_setting("address"), get_setting("address"),
@ -229,7 +229,7 @@ format_special(
``` ```
#### Footer Links #### Footer Links
```html ```php
<ul> <ul>
<?php <?php
$links = get_footer_urls(); $links = get_footer_urls();

@ -14,3 +14,5 @@ site_author: Netsyms Technologies
repo_name: 'Business/SiteWriter' repo_name: 'Business/SiteWriter'
repo_url: 'https://source.netsyms.com/Business/SiteWriter' repo_url: 'https://source.netsyms.com/Business/SiteWriter'
copyright: Copyright &copy; 2018 Netsyms Technologies. All rights reserved. Copying is allowed for instructional purposes (such as creating an internal user help document) as long as credit is given and this copyright notice is included. For other purposes, or if you are selling a product containing copied material, please <a href="https://netsyms.com/contact" target="_BLANK">contact us</a> for permission. copyright: Copyright &copy; 2018 Netsyms Technologies. All rights reserved. Copying is allowed for instructional purposes (such as creating an internal user help document) as long as credit is given and this copyright notice is included. For other purposes, or if you are selling a product containing copied material, please <a href="https://netsyms.com/contact" target="_BLANK">contact us</a> for permission.
markdown_extensions:
- codehilite

Loading…
Cancel
Save