Skip to content

Commit

Permalink
Major refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Mar 10, 2019
1 parent cd5fffe commit 2fcb31a
Show file tree
Hide file tree
Showing 13 changed files with 600 additions and 119 deletions.
27 changes: 19 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
# Java2HTML

JavaFX app for converting java 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.
Make sure to include the CSS/JS includes in the directory `src/main/resources/`
The CSS and _optional JS_ are available in the other tabs in the top-right.

The JS is not necessary however it allows you to make portions of the code collapseable. For examples see [here](https://col-e.github.io/Recaf/plugins-ex-mwscan.html).
### Top-Left tabs:

### Download
* **HTML**: The HTML output.
* **CSS**: The CSS code that styles the HTML span tags.
* **JS**: Optional JS for manual inclusion of collapse-sections.
* **Configuration**: List of Regex groups. If you want to add your own expressions, the option is there. Doing so will automatically generate a CSS entry for your expression's identifying name.

See the [releases](https://github.com/Col-E/Java2HTML/releases) page for the latest build. Or you could compile with maven via `mvn package`
While the JS is not necessary it allows you to make portions of the code collapseable. For examples see [here](https://col-e.github.io/Recaf/plugins-ex-mwscan.html).

### Screenshots
## Download

![Screenshot](screenshot.png)
See the [releases](https://github.com/Col-E/Java2HTML/releases) page for the latest build. Or compile with maven via `mvn package`

### Libraries used:
## Screenshots

* [Apache Commons Text](https://commons.apache.org/proper/commons-text/)
* ![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/)
29 changes: 27 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,38 @@
<modelVersion>4.0.0</modelVersion>
<groupId>me.coley</groupId>
<artifactId>java2html</artifactId>
<version>1.0</version>
<version>2.0.0</version>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-text -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
<version>1.4</version>
<version>1.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/net.sourceforge.jregex/jregex -->
<dependency>
<groupId>net.sourceforge.jregex</groupId>
<artifactId>jregex</artifactId>
<version>1.2_01</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.controlsfx/controlsfx -->
<dependency>
<groupId>org.controlsfx</groupId>
<artifactId>controlsfx</artifactId>
<version>8.40.14</version>
</dependency>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
Expand Down
Binary file removed screenshot.png
Binary file not shown.
Loading

0 comments on commit 2fcb31a

Please sign in to comment.