Code2Html is library which converts code to HTML.
Assume you have code which you want to share on your blog. Code2Html helps to resolve this task in very simple yet beautiful manner. Copy your code to clipboard (Ctrl + C), press predefined key combination, and paste (Ctrl + V) HTML snippet to your blog. That is it!
For now following code types are supported:
- CSS
- HTML
- Bash
- Download latest version from https://github.com/ssinica/code2html/downloads.
- Unzip and run code2html.exe
Project is in passive development. This means - I will add more features when I will need them and fix bugs when they will become critical for me :) So roadmap for future:
- refactor/rewrite engine;
- add Java code support;
- Polish client and prepare builds for different OS;
- Create simple web service to leverage code2html engine.
- JRE 6.0
- Windows 64bit
Code2Html is written in Java. In code2html.zip you will find engine jar and client application. Client application uses JIntellitype to register global hotkeys, so for now it can be used only from Windows (but it can be easy rewritten to use alternative libraries for other OS).
Client application resides in system tray and listens for predefined key press. Distinct hot key are defined for each code type:
Ctrl + Shift + 1
for CSSCtrl + Shift + 2
for HTMLCtrl + Shift + 3
for BASH
You can assign different formatting themes for each code type in file /props/code2html.properties
. Two themes are available for the moment: