![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ez-txt2html-bryce-seefieldt
Advanced tools
a simple open-source Python program that converts plain text and markdown files (.txt, .md) into HTML files (.html)
ezTxt2Html is a simple open-source Python program that converts plain text and markdown files (.txt, .md) into HTML files (.html). You can use it to convert individual file or all files in a directory.
To use ez-txt2html, follow these steps:
python --version
If needed, download and install Python 3
Clone or download this repository to your local machine:
git clone https://github.com/bryce-seefieldt/ez-txt2html.git
cd ez-txt2html\src
Now, you have successfully installed ez-txt2html.
You can run ez-txt2html from the command line. It accepts the following command-line arguments:
Here's how you can run ez_txt2html:
python ez-txt2html.py inputPath [-o outputPath] [-c configPath]
python ez_txt2html.py path/to/yourfile.txt
python ez_txt2html.py path/to/yourdirectory
HTML files will be saved to automatically created ./src/HTML/ directory as a default. Use '-o' or '--output' along with your desirec directory path in order to overide the default save location. This output folder will be overwritten entirely with each execution of the program. HTML files will have the same name as the input files but with the .html extension.
Arguments may be pre-defined in a TOML file and passed to the program.
Example TOML configuration (i.e. in a file named config.toml
):
output = "./HTML"
Note: Using a config file will override other command line switches (if provided).
The included examples folder contains a sample text file which can be run to get an idea of this tool works. While in the src folder run:
python ez_txt2html.py ../examples/
to see how it convert all text files in a folder, OR
python ez_txt2html.py ../examples/til.md
to see how it converts a single specified file.
The converted HTML files will appear in /src/HTML/ unless otherwise specified.
To specify the output directory add '-o' or '--output' forllowed by the local or relative destination path to the command line:
python ez-txt2html.py ../examples/til.md -o ../examples
To utilize a config file add '-c' or '--output' followed by the path to the .toml file: python ez_txt2html.py ../examples/ -c ../config.toml
The current version of ez-txt2html is 1.0.2
This program is open-source and released under the MIT License. Feel free to use and modify it as needed.
ez-txt2html is maintained by Bryce Seefieldt.
If you encounter any issues or have suggestions for improvements, please open an issue.
Enjoy converting your text files to HTML with ez-txt2html!
FAQs
a simple open-source Python program that converts plain text and markdown files (.txt, .md) into HTML files (.html)
We found that ez-txt2html-bryce-seefieldt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.