Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I set txt as colour and size
Message
De
20/07/2017 07:23:24
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01652761
Message ID:
01652766
Vues:
66
>How do I set the colour and size of the text? within text endtext

You don't. This is plain text, not a complex markup language. And markup languages (like rtf, postscript, html) actually don't contain color and fonts per se, only instructions for the rendering software (Word, printer driver, browser).

So you need to see where you want it displayed, and apply the syntax of the language that your display uses. If it's html, then use html syntax. You may need to search previous threads on how to insert html into email (if that is where this is going) - or perhaps on Rick Strahl's site.

A simple example would be
*-- TEXT BLOCK BEGIN
			text TO lcText NOSHOW TEXTMERGE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><<this.ctitle>></title>
<meta http-equiv="Content-Type" content="text/html; charset=<<lcCharset>>">
	<link rel="stylesheet" href="lang.css" type="text/css">
</head>

<body>
<<lcPred>>
</body>
</html>
			ENDTEXT
*-- TEXT BLOCK END

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform