Heading 1 add <h1> and </h1>
Heading 1 add <h1> and </h1>
Please, how do I use a macro to add <h1> and </h1> tags to Heading 1?
OpenOffice 4.1.10 on Windows 10
Re: Heading 1 add <h1> and </h1>
Save As in HTML format (you will need to scroll the formats down to find that). Be aware that OpenOffice does not write good HTML code. You might be better searching for and using a dedicated HTML editor.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: Heading 1 add <h1> and </h1>
Do a find/replace with search for styles to select all Heading 1 paragraphs then do a regex search upon that selection for
^(.+)$
Replacing with
<h1>&</h1>
If it has to be a macro use macro record to get the code.
Edit: Corrected replace term.
^(.+)$
Replacing with
<h1>&</h1>
If it has to be a macro use macro record to get the code.
Edit: Corrected replace term.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)