Code syntax tester

Testing code syntax highlighting

Currently only supports: Javascript, Yaml, Shell

Needs expanding for every new language.

Javascript

const x = 10
const y = 5

function add(a, b) {
    return a + b
}

const result = add(x, y);

Yml

name: E2E Cypress testing
on:
  push:
    branches:
      - main
jobs:
  cypress-run:
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Cypress run
        uses: cypress-io/github-action@v2
        with:
          browser: chrome
          headless: true
          env: host=https://alanionita.github.io
          
      - uses: actions/upload-artifact@v1
        if: failure()
        with:
          name: fails
          path: cypress/    

Yaml

name: E2E Cypress testing
on:
  push:
    branches:
      - main
jobs:
  cypress-run:
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Cypress run
        uses: cypress-io/github-action@v2
        with:
          browser: chrome
          headless: true
          env: host=https://alanionita.github.io
          
      - uses: actions/upload-artifact@v1
        if: failure()
        with:
          name: fails
          path: cypress/    

Shell

Doesn't seem to be displaying correctly but works


cat ./test/test-file.txt

wc -l en_US.twitter.txt

foo@bar:~$ whoami

foo