Skip to content

Armaan-creator/code2html

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Look Code2Html is library which converts code to HTML.

When you may need it?

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!

Supported code types

For now following code types are supported:

  • CSS
  • HTML
  • Bash

Quick Start

Status

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.

Prerequisites

  • JRE 6.0
  • Windows 64bit

Under the hood

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 CSS
  • Ctrl + Shift + 2 for HTML
  • Ctrl + 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:

  • default

  • dark

About

Utility to generate html from code for pasting to blogs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 92.2%
  • CSS 5.5%
  • Java 2.3%