kbscript

gatsby feature test

April 19, 2020

prismjs

// test code highlight
/* comment block */
import module from 'module';
const this_is_a_long_name_function_for_testing_scrollbar = () => { console.log('this_is_a_long_name_function_for_testing_scrollbar') };
const foo = () => {
};
async function baz () {
}
[...a, ...b, ...c]
Object.create(null);
for(let [key, value] of obj) {
}
foo ? baz : bar;
if(true) {
}

Other language highlight

export default {
  h1: props => (    <h1 {...props}>      <a href={`#${props.id}`}>{props.children}</a>    </h1>  ),}
<!DOCTYPE>
<div>Hello World</div>
<custome-component></custome-component>
.imperio {
  color: blue;
}
import java.util.Scanner; // import the Scanner class 

class MyClass {
  public static void main(String[] args) {
    Scanner myObj = new Scanner(System.in);
    String userName;
    
    // Enter username and press Enter
    System.out.println("Enter username"); 
    userName = myObj.nextLine();   
       
    System.out.println("Username is: " + userName);        
  }
}

Undefined language:

- test: 01
  hi: number two

Or without any label:

test 123

Bash:

git clone
git rebase

Inline code

we should use inline code