https://github.com/ryanpcmcquen/codeformatter
A library to morph back-tick wrapped markup into <code>.
https://github.com/ryanpcmcquen/codeformatter
codeformatter hacktoberfest
Last synced: about 2 months ago
JSON representation
A library to morph back-tick wrapped markup into <code>.
- Host: GitHub
- URL: https://github.com/ryanpcmcquen/codeformatter
- Owner: ryanpcmcquen
- License: mpl-2.0
- Created: 2016-02-18T23:44:19.000Z (almost 10 years ago)
- Default Branch: gh-pages
- Last Pushed: 2020-08-03T21:07:07.000Z (over 5 years ago)
- Last Synced: 2025-08-17T15:36:32.276Z (4 months ago)
- Topics: codeformatter, hacktoberfest
- Language: JavaScript
- Homepage: https://ryanpcmcquen.org/codeFormatter/
- Size: 104 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# codeFormatter
A library to morph back-tick wrapped markup in to ``.
https://github.com/ryanpcmcquen/codeFormatter
This used to support language specific syntax highlighting, but unfortunately, all the times I have submitted code that included PrettyPrint to various browser extension repositories, it has been an uphill battle that has many times prevented extensions from being accepted.
For that reason, I've removed all of the PrettyPrint embedded code from here and switched to a smaller, simpler library called Microlight:
https://github.com/asvd/microlight
Microlight also has the advantage of being language and theme agnostic. You now only need to specify if you wish to disable the syntax highlighting.
Single ticks render inline code, triple ticks render multi-line code. If you wish to disable syntax highlighting, suffix the initial triple ticks with `p` or `plain`, for example:
````
```p
```plain
````
Head here for a demo:
https://ryanpcmcquen.org/codeFormatter/