Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/col-e/code2html
JavaFX tool for converting source code to styled HTML
https://github.com/col-e/code2html
css formatter html javafx js regex
Last synced: 19 days ago
JSON representation
JavaFX tool for converting source code to styled HTML
- Host: GitHub
- URL: https://github.com/col-e/code2html
- Owner: Col-E
- License: mit
- Created: 2018-07-12T01:42:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-03T06:41:41.000Z (8 months ago)
- Last Synced: 2024-04-03T07:37:43.245Z (8 months ago)
- Topics: css, formatter, html, javafx, js, regex
- Language: Java
- Homepage:
- Size: 317 KB
- Stars: 30
- Watchers: 3
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Code2HTML
A JavaFX app for converting user specified languages to HTML. Paste source code into the top-left panel and the HTML will show in the top-right, with a preview at the bottom.
The CSS and _optional JS_ are available in the other tabs in the top-right. Updating the CSS and JS will display live updates in the preview area.### Top-Left tabs:
* **HTML**: The HTML output.
* **CSS**: The CSS code that styles the HTML span tags.
* **JS**: Optional JS for manual inclusion of collapse-sections.
* **Patterns**: List of Regex groups for the currently loaded language.While the JS is not necessary it allows you to make portions of the code collapseable.
## Download
See the [releases](https://github.com/Col-E/Code2HTML/releases) page for the latest build. Or compile with maven via `mvn package`
**Note**: Builds are based off of Java 8. Running on later versions will not work, please see [the update guide](UPDATING-JDK.md) for more information.
## Screenshots
* ![Main View](ss-html.png)
* ![Config View](ss-config.png)## Libraries used:
* [Apache Commons IO](https://commons.apache.org/proper/commons-io/)
* [Apache Commons Text](https://commons.apache.org/proper/commons-text/)
* [ControlsFX](https://github.com/controlsfx/controlsfx)
* [JRegex](http://jregex.sourceforge.net/)
* [picocli](https://picocli.info/)
* [Lombok](https://projectlombok.org/)