Table of Contents
HTML usage in Newbase
Within Newbase there are a number of components where HTML can be used. HTML is the language with which you create documents (but also home pages or web pages) that can be viewed on the World Wide Web and, within Newbase, take care of the layout of prints and messages. This format can be used within the following modules:
- drop-down lists (think of formatting conditions)
- translations (think of texts on prints)
- templates (e.g. the layout of an email)
- for users - messages: e-mail end
Bij de meeste onderdelen is er een speciale HTML editor aanwezig die gebruikt kan worden om de HTML code in te voeren.
In het onderstaande voorbeeld is het ‘email einde’ te zien op de manier zoals deze ook in een e-mail zal worden weergegeven. Indien de applicatie in wijzig modus staat is de knop ‘HTML Editor’ zichtbaar. Na klikken op de knop opent zich een pop-up scherm en wordt de HTML code zichtbaar.
HTML Codes
In any case, the following HTML codes work within Newbase.
The basis
To be able to use HTML, the program must know that it is HTML code. Each part must contain the following code:
<html>
</html>
New line
if you are creating a block of text with multiple lines, you will have to insert a “hard line break”. If you don't do this, the text will continue in one line.
Spaces, center and tables
It is not possible to use tables within the HTML code available in Newbase. You can, however, use the <table> code for centering texts.
You can use spaces to align texts such as conditions on documents. PLEASE NOTE! The width of letters is different; you will never get it perfect!
Use of color
You can use colors in the texts. Within HTML, a hexadecimal format is used for colors.
Load external image
At the "email end" you can include a company logo.
Codes
Begin code | End code | Code | Result | |
Print text in bold | <b> | </b> | This is printed <b>bold</b> | This is printed bold |
Print text italic | <i> | </i> | This is printed<i>italic</i> | This is printed italic |
Print text underlined | <u> | </u> | This <u>text </u> is underlined | This text is underlined |
Line break | <br> | no need | This is line one<br>and this is line two | This is line one and this is line two |
Space | | no need | Here 3 spaces are used: & nbsp; & nbsp; & nbsp; space | Here 3 spaces are used: space |
Centrering | <table align=”center”> | </table> | The text below is centered: <br> <table align = ”center”> Middle </table> | The text below is centered: Middle |
Use of color | <font color="#xxxxx"> | </font> | This <font color = "# D33115"> text </font> is printed in red | This text is printed in red |
link to website in text | <a href> | </a> | <a href="https://www.newbase.nl">Newbase website</a> | |
link to e-mail in text | <a href> | </a> | <a href="mailto:info@newbase.nl">Send Newbase an e-mail</a> |
HTML in combination with merge code
HTML and merge codes can be combined. For more information about merge codes, see the help file
Some examples
Code | Result |
<html> <b>Delivery address: </b><br><br> CompanyName<br>Adresstraat 13<br>1000 AA AMSTERDAM<br> </html> | Delivery address: CompanyName Adresstraat 13 1000 AA AMSTERDAM |
<html> <b>Payment condition:</b><br> 14 days netto<br> <font color="#D33115c"> <i>payment deadline July 21!</font> </i> </html> | Payment condition: 14 days netto payment deadline July 21! |
<html> Please state our project number<br> on all correspondence:<b> %%merge.project.serial%%</b> </html> | Please state our project number on all correspondence: PR17-12345 |