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.
- .NET Framework 4.8
-
Preserves console text colors
-
Monospace font for consistent display
-
Black background to mimic console appearance
Console2HTML.exe --target OutputFileName
Example:
Console2HTML.exe --target .\test.html
<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>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>Console2HTML.exe</span> <span class='defaultColor'>--target</span> <span class='defaultColor'>.\test.html</span>
</pre>
</body>
</html>
Contributions are welcome! Feel free to open issues or submit pull requests.
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.....
- Developed with assistance from YandexGPT 5 Pro and Qwen: https://github.com/alibabacloud/qwen
