Skip to content

scumware/Console2HTML

Repository files navigation

Console2HTML

Overview

Console2HTML is a simple utility that converts console output with colored text into an HTML file, preserving the color formatting. This tool is particularly useful when you need to share console output that includes color-coded text.

Requirements

  • .NET Framework 4.8

Features

  • Preserves console text colors

  • Monospace font for consistent display

  • Black background to mimic console appearance

Usage

Console2HTML.exe --target OutputFileName

Example:

Console2HTML.exe --target .\test.html

Output Example

<html>
<head>
<style>
body { background-color: black; }
.defaultColor { color: #808080; font-family: monospace; }
.colorDarkGreen { color: #006400; font-family: monospace; }
.colorDarkRed { color: #8B0000; font-family: monospace; }
</style>
</head>
<body>
<pre>
<span class='defaultColor'>C:\WorkingSet\sources\Console2HTML\bin\Release&gt;git</span> <span class='defaultColor'>branch</span> <span class='defaultColor'>-a</span>
<span class='defaultColor'>*</span> <span class='colorDarkGreen'>master</span>
<span class='defaultColor'>master2</span>
<span class='colorDarkRed'>remotes/origin/main</span>
<span class='colorDarkRed'>remotes/origin/master</span>

<span class='defaultColor'>C:\WorkingSet\sources\Console2HTML\bin\Release&gt;Console2HTML.exe</span> <span class='defaultColor'>--target</span> <span class='defaultColor'>.\test.html</span>
</pre>
</body>
</html>

Screenshot

Console2HTML Output

Contribution

Contributions are welcome! Feel free to open issues or submit pull requests.

License

MIT License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction.....

Credits

About

Utility for reading windows console buffer and export it to html.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages