/syntax-highlighter-for-arkivert-terminal-output

Web app that takes terminal-text as input and previews it like it was when outputted from the terminal

Primary LanguageJavaScript

Syntax highlighter for Terminal languages

App_interface

En webapp som viser arkivert terminal (bl.a. git bash)-logg i opprinnelige farger.

Hvis man bruker Visual Studio Code's innebygde terminal og vil ta vare på loggen til ettertid, vil man ikke kunne beholde fargene / syntax highligting-en på teksten. Kopierer & limer man teksten inn i Word vil alt bli svart-på-hvitt, totalt uleselig.

Denne appen skal få tilbake (noe av*) leseligheten. *: Dvs. så langt gjenkjenner den første linje i git bash (den med directory-path og det), nodemon og heroku syntax.

Eksempel input

OS-navn@PC-type MINGW64 /c/xampp/htdocs/sider/annet/kodetester/nodetutorial/express-tut (master)
$ npm run dev

> express-tut@1.0.0 dev C:\xampp\htdocs\sider\annet\kodetester\nodetutorial\express-tut
> nodemon index

[nodemon] 2.0.7
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node index index.js`
server started on 5000
[nodemon] restarting due to changes...
[nodemon] starting `node index index.js`
server started on 5000
[nodemon] restarting due to changes...
[nodemon] starting `node index index.js`
server started on 5000
[nodemon] app crashed - waiting for file changes before starting...
^C

OS-navn@PC-type MINGW64 /c/xampp/htdocs/sider/annet/Ranking-app/www/app (master)
$ npm test

PASS  ./script.test.js (24.17 s)
√ if h2 and buttons exists (1566 ms)
√ if a list item exists (1929 ms)
√ if first item can move down (2504 ms)
√ if first item can be edited (3859 ms)
√ if user can create item (2357 ms)
√ if list can be saved (6388 ms)

FAIL  ./script.test.js (15.187 s)
× if h2 and buttons exists (3003 ms)
× if a list item exists (251 ms)
× if first item can move down (622 ms)
× if first item can be edited (126 ms)
× if user can create item (495 ms)
× if list can be saved (3993 ms)

Eksempel output

App_results