In today's digital age, creating web content is more accessible than ever. Whether you're a blogger, a developer, or simply someone looking to share information online, converting text to HTML is a common task. To simplify this process, I'm thrilled to introduce our new tool, "convertTxtToHtml."
Installation
Download and Install Java Development Kit according to the Oracle JDK Installation Guide.
Clone this repository to your local machine
git clone git@github.com:WangGithub0/ConvertTxtToHtml.git
cd ConvertTxtToHtml
- Add executable permission to the
ConvertTxtToHtml.javafilechmod +x src/ConvertTxtToHtml.java
Examples
java src/ConvertTxtToHtml.java ./examples
Command Options:
-
--helpor-h: Display help information. -
--versionor-v: Display the tool's version. -
path: Specify the path to a.txtfile or a directory containing multiple .txt files. If a directory is provided,tmlwill recursively process all.txtfiles within. -
--outputor-o: Specify a custom output directory. The tool will create the directory if it does not exist.
Features
- Converts single or multiple
.txtfiles to.html. - Same directory structure in output directory.
- Allow to specify a different output directory.
- Automatically parsing title from
.txtfile.
Top comments (0)