I know this was answered now and I have accepted the first answer which worked for me but for completness I wanted to add the link to the actual documentation I finally found as well as another alternative to the grouping abbreviation.
As I didn't know what the character commands were called I was unable to find the documentation on them at first.
However, after some extended research (thank you google) I finally found that they are called abbreviations
.
Ones I found that I was also able to find the abbreviation syntax documentation quite quickly.
After reading the documentation I found that there was 2 ways of solving my problem.
I can use the Climb-up abbreviation ^
, similar to this:
html>head>title^body
Or I can use the Grouping abbreviation ()
to group your sets and then use the standard Sibling abbreviation +
as usual, similar to this:
html>(head>title)+body
Using the grouping abbreviation was also what Nathan Lee's answer suggested and which I accepted.
Both will generate this output:
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
If there is any benefit in using one of the other I don't know.