# Html labels with placeholders

**URL:** <https://forum.graphviz.org/t/html-labels-with-placeholders/3347>\
**Category:** Help\
**Created:** [May 25, 2026, 4:54am UTC](https://forum.graphviz.org/t/html-labels-with-placeholders/3347 "2026-05-25T04:54:30Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [May 30, 2026, 3:29am UTC](https://forum.graphviz.org/t/html-labels-with-placeholders/3347/7 "2026-05-30T03:29:16Z")

</div>

**gvEd.gvpr** can be found [here](https://gist.github.com/steveroush/a5d1e9332f4f0ef5a5ea9cc0442cbd15):

Usage example:  
`gvpr -a P__ -cf gvEd.gvpr htmlVars1.gv | dot -Tpng -ooo.png`

htmlVars1.gv:

```auto

graph H {

  edge [
    __EC1="green"__ EC2=purple __EC3="\"lightblue\""
  ] 
  node[label="\N" XYZ="12345"]
  a -- b -- c [color=__EC1]

  node [
    shape=plain
    label=<<table>
    <tr><td>\N</td></tr>
    <tr><td __BGC>__ txt2</td></tr>
    <tr><td>just some words</td></tr>
    <tr><td>__var</td></tr>
    </table>>
  ]

  node1 [__var="some text"__ txt2="more words"]
  node2 [__var="some more text"__ txt2="one word" dummy=abc junk=xyz]
  node3 [__var="text3"__ txt2="no more words" __BGC="BGCOLOR=\"RED\""]
  node4 [__var="text four"__ txt2="some words" __BGC="BGCOLOR=\"GREEN\""]
  node1 -- { node2 node3 node4 } 

  node100 [shape=rect label="Plain, not html" width=1]

  node [
    shape=plain
    label=<<table>
    <tr><td>Round No. 2</td></tr>
    <tr><td>__var</td></tr>
    <tr><td>just some words</td></tr>
    <tr><td>__txt2</td></tr>
    </table>>
  ]
  node5 [__var="something"__ txt2="these words"]
  node6 [__var="one hot dog"__ txt2="no more words"]
  node7 [__var="over<br/>under"__ txt2="last words"]
  edge [color=purple label="\E"]
  node5 -- node6 -- node7 [color=__EC2]
}

```

see also: [gvInclude.gvpr - insert a Graphviz code file into another Graphviz file](https://forum.graphviz.org/t/gvinclude-gvpr-insert-a-graphviz-code-file-into-another-graphviz-file/3348)

---

_[View the full topic](https://forum.graphviz.org/t/html-labels-with-placeholders/3347)._
