SVG

svgComment()

Write an XML comment to an SVG file

Syntax

Signature
svgComment( nSvg, cComment ) --> NIL

Arguments

nSvg

Drawing handle returned by svgInit().

cComment

Comment text.

Return value

NIL.

Description

Inserts spaces between adjacent hyphens and after a trailing hyphen to keep the comment valid in XML.

Example

svgComment.prg
PROCEDURE Main()

   LOCAL nSvg := svgInit( "comment.svg", 200, 120 )

   IF nSvg == 0
      RETURN
   ENDIF

   svgComment( nSvg, "The main shape" )
   svgFilledCircle( nSvg, 100, 60, 40, "#264D73" )
   svgClose( nSvg )

RETURN

Output

See also