prism js code syntax highlight test

prism js code highlight

prism js 구문 강조 테스트입니다.

Listen 192.168.0.3:80
Listen 192.168.0.4:80


<VirtualHost 192.168.0.3:80>
	ServerAdmin webmaster@server1.example.com
	DocumentRoot /var//www/server1
	ServerName server1.example.com
	ErrorLog logs/server1-error_log
	TransferLog logs/server1-access_log
 </VirtualHost>


<VirtualHost 192.168.0.4:80> 
	ServerAdmin webmaster@server2.example.com
	DocumentRoot /var//www/server2
	ServerName server2.example.com
	ErrorLog logs/server2-error_log
	TransferLog logs/server2-access_log 
 </VirtualHost>

nginx

server {
    listen       80;
    server_name  blog.lesstif.com;

    charset utf-8;

    rewrite_log  on;

    access_log  /var/log/nginx/blog.lesstif.com.access.log  main;
    error_log  /var/log/nginx/blog.lesstif.com.error.log  notice;

    root     /var/www/html;

    return       301 https://blog.lesstif.com$request_uri;
}

bash

#!/bin/sh

echo "hello";

for i in {1..10};do
	echo $i;
done   

java script

const path = require('path');

module.exports = {
    env: {
        es6: true,
        node: true
    },
    plugins: ['ghost'],
    extends: [
        'plugin:ghost/node'
    ],
    rules: {
        // @TODO: remove this rule once it's turned into "error" in the base plugin
        'no-shadow': 'error',
        'no-var': 'error',
        'one-var': ['error', 'never']
    },
    overrides: [
        {
            files: 'core/server/api/canary/*',
            rules: {
                'ghost/ghost-custom/max-api-complexity': 'warn'
            }
        },
        {
            files: 'core/shared/**',
            rules: {
                'ghost/node/no-restricted-require': ['error', [
                    {
                        name: path.resolve(__dirname, 'core/server/**'),
                        message: 'Invalid require of core/server from core/shared.'
                    },
                    {
                        name: path.resolve(__dirname, 'core/frontend/**'),
                        message: 'Invalid require of core/frontend from core/shared.'
                    }
                ]]
            }
        },
        /**
         * @TODO: enable these soon
         */
        {
            files: 'core/frontend/**',
            rules: {
                'ghost/node/no-restricted-require': ['off', [
                    // These are critical refactoring issues that we need to tackle ASAP
                    {
                        name: path.resolve(__dirname, 'core/server/**'),
                        message: 'Invalid require of core/server from core/frontend.'
                    },
                    // If we make the frontend entirely independent, these have to be solved too
                    {
                        name: path.resolve(__dirname, 'core/shared/**'),
                        message: 'Invalid require of core/shared from core/frontend.'
                    }
                ]]
            }
        },
        {
            files: 'core/server/**',
            rules: {
                'ghost/node/no-restricted-require': ['off', [
                    {
                        name: path.resolve(__dirname, 'core/frontend/**'),
                        message: 'Invalid require of core/frontend from core/server.'
                    }
                ]]
            }
        }
    ]
};

css

/* Portrait */

@media only screen

and (min-device-width: 375px)

and (max-device-width: 667px)

and (-webkit-min-device-pixel-ratio: 2)

and (orientation: portrait) {

}

/* Landscape */

@media only screen

and (min-device-width: 375px)

and (max-device-width: 667px)

and (-webkit-min-device-pixel-ratio: 2)

and (orientation: landscape) {

}

Java

/* This is a simple Java program.
FileName : "HelloWorld.java". */
class HelloWorld
{
	// Your program begins with a call to main().
	// Prints "Hello, World" to the terminal window.
	public static void main(String args[])
	{
		System.out.println("Hello, World");
	}
}

php

<?php

class A{
	public function h();
}

$a = new A();
$a->h();

if ($a === null ) {
   if ($a >= 3) { }
}

c

#include <stdio.h>

int main()
{
  printf("Hello World");
  return 0;
}

c++

#include <iostream.h>

int main(void)
{
  cout << "Hello World" << endl;
  return 0;
}

Subscribe to 바쁜 IT인을 위한 큐레이터.

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe