JSFiddle - React, Tailwind, and code Playground

HTML

<html>
<head>
</head>
<body>
    <h1> ... </h1>
    <br />
    <div class="text">
        Hallo ich bin ein text und jetzt
        <span class="spacing"><span class="A outer start">kommt eine</span> <span class="B start"><span class="A outer end overlap">neue</span></span> <span class="B end">Zeile</span></span> mit
        und noch eine mittlere Zeile
            ganz vielen markierungen die
            ich sehr gut sehen kann aber.
    </div> 
</body>
</html>

CSS

html {
    font-size: 22px;
}

.text {

    width: 280px;
    text-align: justify;
    
}

div {
    padding-left: 10px;
    
}

span {
    border-radius: 7px;
    border-width: 2px;
    border-style: solid;
    padding: 0px;
    margin: 0px;
}

.A {
    border-color: #FF9000;
}

.B {
    border-color: #A101A6;
    z-index: 100;
}

.outer {
    z-index: 10;
    padding: 4px 2px;
}

.start {
    border-right:0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.end {
    border-left: 0px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

.overlap {
    border-right-style: dotted !important;
}

.spacing {
    border: 0px;
    word-spacing:-10px;
}