Просмотр полной версии : ascii text format
Americandream
02.10.2008, 10:28
hello.
i need to format some texts for they appear in the center of the page when opened in a browser, but i dont want to use HTML for format them, i just want to add tabulation to my txt files.
what soft can i use for format my txt files? there is command on VIM like "set textwidth" but this is not for me. any help i appreciate.
i think you can use any text editor which has it's own script system, for example Notepad++ (just press Record -> format first line -> turn to next -> press Stop -> and then run recorded script)
Americandream
02.10.2008, 22:04
this are called macros, since when macros should be a solution?
macros objective is to automate tasks, should them be for automate text formattion?
all i need is to get text formatted just like unix man pages are.
so, i checked this option on man
-t Use ``/usr/bin/groff -S -man'' to format the manual page, pass-
ing the output to stdout. The default output format of
groff(1) is Postscript, but see the manual page of groff(1) for
ways to pick an alternate format.
Depending on the selected format and the availability of print-
ing devices, the output may need to be passed through some fil-
ter or another before being printed.
i dont know whether this can be a solution, i only ask because certainly someone has the right simple answer.
macros objective is to automate tasks, should them be for automate text formattion?
Yes, I've tried this method.
Americandream
03.10.2008, 12:31
Yes, I've tried this method.
i dont think this method is the ideal solution, at least not very pratical.
In my opinon it is, cause there are special macroses to make one formattion in the whole text.
Americandream
03.10.2008, 22:14
maybe it is, however i dont believe most of formated *.txt texts you see on the web are formatted using this method.
vBulletin® v3.8.14, Copyright ©2000-2026, vBulletin Solutions, Inc. Перевод: zCarot