【Prism.js】シンタックスハイライト表示(デモ用)

PHP表示

<?php
phpinfo();


HTML表示

<html lang="ja">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>


CSS表示

* {
    color: #222;
}


JavaScript表示

document.write("<p>JavaScript テスト</p>");


.htaccess表示

## https / wwwあり
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>


Bash表示

$ ping google.com


JSON表示

{
    "name": "Tanaka",
    "age": 26
}


SASS表示

$black: #000000;
$position: left;
    
.item1 {
    color: $black;
    width: 100px;
    &:hover {
        width: 50px;
    }
}

.item2 {
    background: $black;
    margin-#{$position}: 30px;
}

.box {
    &_a {
        background: #ffffff;
    }
    &_b {
        background: #000000;
    }
}


SQL表示

show processlist;