I installed the trial version of UltraEdit in early March, and have since purchased UltraEdit. My main use of UltraEdit is for Markdown files.
While UltraEdit allows the saving of a Markdown file to an HTML file, it is time intensive to do so.
Here is how I am presently saving a Markdown file as an HTML file.
To save an .md file as an .html file:
JavaScript is not my friend, but I am learning.
Before I proceed further, I was wondering if anyone else has already developed a solution to convert a Markdown file to an HTML file.
I realize that there are external utilities to convert a .md file to an .html file, but they change the appearance of the HTML file after being converted from a Markdown file. I understand that the appearance involves CSS styles which I am learning about. However, the HTML generated by UltraEdit is what I want.
A cursory search of the forums did not reveal a solution.
Constructive suggestions would be appreciated.
Joe
UltraEdit
2022.2.0.52 64-bit
While UltraEdit allows the saving of a Markdown file to an HTML file, it is time intensive to do so.
Here is how I am presently saving a Markdown file as an HTML file.
To save an .md file as an .html file:
- From UltraEdit, ensure that the .md file has been saved, then Coding -> Live Preview
- Go to the folder where the .md file has been saved. I have a file called TCCWinAPI.md.
- There is a file called 0TCCWinAPI.html in that same folder.
The file 0TCCWinAPI.html exists when Live Preview is active.
The file 0TCCWinAPI.html does not exist when Live Preview is not active. - The file 0TCCWinAPI.html has
Code: Select all
<title>Markdown preview</title>
- I want to change that title. I use SED.EXE to make the change.
Code: Select all
sed.exe -i -e 's/Markdown preview/Take Command Console Win API Functions/g' 0TCCWinAPI.html
- I then copy 0TCCWinAPI.html to TCCWinAPI.html.
Code: Select all
var text = UltraEdit.activeDocument.path;
UltraEdit.messageBox(text, "Results:");
Before I proceed further, I was wondering if anyone else has already developed a solution to convert a Markdown file to an HTML file.
I realize that there are external utilities to convert a .md file to an .html file, but they change the appearance of the HTML file after being converted from a Markdown file. I understand that the appearance involves CSS styles which I am learning about. However, the HTML generated by UltraEdit is what I want.
A cursory search of the forums did not reveal a solution.
Constructive suggestions would be appreciated.
Joe
UltraEdit
2022.2.0.52 64-bit