Skip to main content
more clear
Source Link

Preprocessor for Windows, good for generating htmlHTML files

I need a template engine (preprocessor) for Windows that allows me to define my own (very simple) language. I need it for generating html files. It should be able to make macro substitutions but also to make replacements like this:

replace this:

lnk(http://www.example.com)

with this:

<a target="_blank" href="http://www.example.com">http://www.example.com</a>

I prefer to be able to define replacements in a text file - preferably in a way that looks readable, where you can write http:// instead of an escape sequence like http:\/\/ (sed has this issue).

Later edit: meanwhile I managed to do something like this using sed for Windows, but the script looks dreadful:

#Plain link
s/lnk\x28\(.*\)\x29/<a target="_blank" href="\1">\1<\/a>/g

Instead, it would be much better to be able to define replacements in a way like this:

#Replace this:
lnk(@var)
#With this:
<a target="_blank" href="$var">$var</a>

Basically I need to compile a source text file into a HTML file.

I'm using Windows 10 x64

Preprocessor for Windows good for generating html files

I need a template engine (preprocessor) for Windows that allows me to define my own (very simple) language. I need it for generating html files. It should be able to make macro substitutions but also to make replacements like this:

replace this:

lnk(http://www.example.com)

with this:

<a target="_blank" href="http://www.example.com">http://www.example.com</a>

I prefer to be able to define replacements in a text file - preferably in a way that looks readable, where you can write http:// instead of an escape sequence like http:\/\/ (sed has this issue).

Later edit: meanwhile I managed to do something like this using sed for Windows, but the script looks dreadful:

#Plain link
s/lnk\x28\(.*\)\x29/<a target="_blank" href="\1">\1<\/a>/g

Instead, it would be much better to be able to define replacements in a way like this:

#Replace this:
lnk(@var)
#With this:
<a target="_blank" href="$var">$var</a>

I'm using Windows 10 x64

Preprocessor for Windows, good for generating HTML files

I need a template engine (preprocessor) for Windows that allows me to define my own (very simple) language. I need it for generating html files. It should be able to make macro substitutions but also to make replacements like this:

replace this:

lnk(http://www.example.com)

with this:

<a target="_blank" href="http://www.example.com">http://www.example.com</a>

I prefer to be able to define replacements in a text file - preferably in a way that looks readable, where you can write http:// instead of an escape sequence like http:\/\/ (sed has this issue).

Later edit: meanwhile I managed to do something like this using sed for Windows, but the script looks dreadful:

#Plain link
s/lnk\x28\(.*\)\x29/<a target="_blank" href="\1">\1<\/a>/g

Instead, it would be much better to be able to define replacements in a way like this:

#Replace this:
lnk(@var)
#With this:
<a target="_blank" href="$var">$var</a>

Basically I need to compile a source text file into a HTML file.

I'm using Windows 10 x64

rewritten - the GUI is not important
Source Link

Text templating GUI program Preprocessor for Windows good for generating html files

I need a template engine (preprocessor) for Windows that allows me to define my own (very simple) language. I need it for generating html files. It should be able to make macro substitutions but also to make replacements like this:

replace this:

lnk(http://www.example.com)

with this:

<a target="_blank" href="http://www.example.com">http://www.example.com</a>

I prefer a GUI program (like an editor). If such text editor doesn't exist, then a command-line interpreter (like awk) is also good.

If it's a command-line tool, then I prefer to be able to define replacements in a text file - preferably in a way that looks readable, where you can write http:// instead of an escape sequence like http:\/\/ (sed has this issue).

Later edit: meanwhile I managed to do something like this using sed for Windows, but the script looks dreadful:

#Plain link
s/lnk\x28\(.*\)\x29/<a target="_blank" href="\1">\1<\/a>/g

Instead, it would be much better to be able to define replacemetsreplacements in a way like this:

#Replace this:
lnk(@var)
#With this:
<a target="_blank" href="$var">$var</a>

I'm using Windows 10 x64

Text templating GUI program for Windows

I need a template engine (preprocessor) for Windows that allows me to define my own (very simple) language. It should be able to make macro substitutions but also to make replacements like this:

replace this:

lnk(http://www.example.com)

with this:

<a target="_blank" href="http://www.example.com">http://www.example.com</a>

I prefer a GUI program (like an editor). If such text editor doesn't exist, then a command-line interpreter (like awk) is also good.

If it's a command-line tool, then I prefer to be able to define replacements in a text file - preferably in a way that looks readable, where you can write http:// instead of an escape sequence like http:\/\/ (sed has this issue).

Later edit: meanwhile I managed to do something like this using sed for Windows, but the script looks dreadful:

#Plain link
s/lnk\x28\(.*\)\x29/<a target="_blank" href="\1">\1<\/a>/g

Instead, it would be much better to be able to define replacemets in a way like this:

#Replace this:
lnk(@var)
#With this:
<a target="_blank" href="$var">$var</a>

I'm using Windows 10 x64

Preprocessor for Windows good for generating html files

I need a template engine (preprocessor) for Windows that allows me to define my own (very simple) language. I need it for generating html files. It should be able to make macro substitutions but also to make replacements like this:

replace this:

lnk(http://www.example.com)

with this:

<a target="_blank" href="http://www.example.com">http://www.example.com</a>

I prefer to be able to define replacements in a text file - preferably in a way that looks readable, where you can write http:// instead of an escape sequence like http:\/\/ (sed has this issue).

Later edit: meanwhile I managed to do something like this using sed for Windows, but the script looks dreadful:

#Plain link
s/lnk\x28\(.*\)\x29/<a target="_blank" href="\1">\1<\/a>/g

Instead, it would be much better to be able to define replacements in a way like this:

#Replace this:
lnk(@var)
#With this:
<a target="_blank" href="$var">$var</a>

I'm using Windows 10 x64

Win 10
Source Link

I need a template engine (preprocessor) for Windows that allows me to define my own (very simple) language. It should be able to make macro substitutions but also to make replacements like this:

replace this:

lnk(http://www.example.com)

with this:

<a target="_blank" href="http://www.example.com">http://www.example.com</a>

I prefer a GUI program (like an editor). If such text editor doesn't exist, then a command-line interpreter (like awk) is also good.

If it's a command-line tool, then I prefer to be able to define replacements in a text file - preferably in a way that looks readable, where you can write http:// instead of an escape sequence like http:\/\/ (sed has this issue).

Later edit: meanwhile I managed to do something like this using sed for Windows, but the script looks dreadful:

#Plain link
s/lnk\x28\(.*\)\x29/<a target="_blank" href="\1">\1<\/a>/g

Instead, it would be much better to be able to define replacemets in a way like this:

#Replace this:
lnk(@var)
#With this:
<a target="_blank" href="$var">$var</a>

I'm using Windows 10 x64

I need a template engine (preprocessor) for Windows that allows me to define my own (very simple) language. It should be able to make macro substitutions but also to make replacements like this:

replace this:

lnk(http://www.example.com)

with this:

<a target="_blank" href="http://www.example.com">http://www.example.com</a>

I prefer a GUI program (like an editor). If such text editor doesn't exist, then a command-line interpreter (like awk) is also good.

If it's a command-line tool, then I prefer to be able to define replacements in a text file - preferably in a way that looks readable, where you can write http:// instead of an escape sequence like http:\/\/ (sed has this issue).

Later edit: meanwhile I managed to do something like this using sed for Windows, but the script looks dreadful:

#Plain link
s/lnk\x28\(.*\)\x29/<a target="_blank" href="\1">\1<\/a>/g

Instead, it would be much better to be able to define replacemets in a way like this:

#Replace this:
lnk(@var)
#With this:
<a target="_blank" href="$var">$var</a>

I need a template engine (preprocessor) for Windows that allows me to define my own (very simple) language. It should be able to make macro substitutions but also to make replacements like this:

replace this:

lnk(http://www.example.com)

with this:

<a target="_blank" href="http://www.example.com">http://www.example.com</a>

I prefer a GUI program (like an editor). If such text editor doesn't exist, then a command-line interpreter (like awk) is also good.

If it's a command-line tool, then I prefer to be able to define replacements in a text file - preferably in a way that looks readable, where you can write http:// instead of an escape sequence like http:\/\/ (sed has this issue).

Later edit: meanwhile I managed to do something like this using sed for Windows, but the script looks dreadful:

#Plain link
s/lnk\x28\(.*\)\x29/<a target="_blank" href="\1">\1<\/a>/g

Instead, it would be much better to be able to define replacemets in a way like this:

#Replace this:
lnk(@var)
#With this:
<a target="_blank" href="$var">$var</a>

I'm using Windows 10 x64

rewritten
Source Link
Loading
added 37 characters in body
Source Link
Loading
added 472 characters in body
Source Link
Loading
Post Reopened by Nicolas Raoul
deleted 2 characters in body; edited tags
Source Link
Nicolas Raoul
  • 19.7k
  • 12
  • 59
  • 151
Loading
added 136 characters in body
Source Link
Loading
added 10 characters in body
Source Link
Loading
Post Undeleted by Nicolas Raoul
added 24 characters in body; edited title
Source Link
Loading
Post Deleted by CommunityBot
Post Closed as "Needs details or clarity" by Amazon Dies In Darkness
Source Link
Loading