Render a fully colorized text directly to your browser without need to refresh a page.
Requires docker and docker-compose.
- Clone repo to local machine.
- Run
docker-compose run app /bin/sh -c 'yarn install'to prepare container. - Run
docker-compose up, after that local server would be available atlocalhost(by default port80). - Edit/add any files in the
libraryfolder. Feel free to use text editor of your choice. - Upon save, the text will be colorized and displayed in the browser.
Note: On updating all text files inside
libraryfolder will be displayed. If you don't want to display them all, change a files extensions from.txtto anything else.
Note: Nesting inside of the
libraryfolder is supported, checklibrary/example.
Note: By default docker container uses port
80at your host machine. If you need to use another port you could change it in thedocker-compose.ymlfile inports:graph.
Requires nodejs (npm) and yarn.
- Clone repo to local machine.
- Run
yarnornpm install. - Start the server with
yarn start, local server would be available at port8080. - Edit/add any files in the
libraryfolder. Feel free to use text editor of your choice. - Upon save, the text will be colorized and displayed in the browser.
Note: On updating all text files inside
libraryfolder will be displayed. If you don't want to display them all, change a files extensions from.txtto anything else.
Note: If you need, you could save txt files in nested directories inside
libraryfolder. Checklibrary/examplefor an example.
Note: By default
webpack-dev-serveruses port8080at your host machine. If another port number is required, check webpack-dev-server documentation.
Requires nodejs (npm) and yarn.
- Clone repo to local machine.
- Run
yarnornpm install. - Start the watcher with
yarn start. - Edit/add any files in the
libraryfolder. Feel free to use text editor of your choice. - Upon save, the text will be colorized and displayed in the terminal for that file.
note requires a terminal that can support True Color, I would recommend Iterm for OSX https://iterm2.com/downloads.html.
This has been tested on OSX, with node version v14.18.0
Requires docker and docker-compose.
- Clone repo to local machine.
- Run
docker-compose run app /bin/sh -c 'yarn install'to prepare container. - Run
docker-compose run app /bin/sh -c 'yarn terminal'to start watchinglibraryfolder. - Edit/add any files in the
libraryfolder. Feel free to use text editor of your choice. - Upon save, the text will be colorized and displayed in the terminal for that file.