I wrote this html
<div>
...something...
<div>
<pre>
abc{
efg
}
<pre>
</div>
</div>
and browser show me this as contents of pre (absolute indent).
abc{
efg
}
but what I want is this (relational indent from pre tag)
abc{
efg
}
I was searched with Google and someone solve this with little javascript code.
But I want to solve this without js if it's possible.
How can I use relational indent without javascript?
I also have exactly same problem in js's template literal.
code
text = `
abc
def
`
what I want
abc
def
I actualy got
abc
def
Is there any way using relational indent or indent character like newline?