Strange block formatting for code blocks
CompletedWhen I have a code block like the following one
```
curl -u user:passwd --cacert ~/Desktop/cert.crt --form formel1='[{"formel1":"formel1","formel2":"formel2","formel2":"formel2"}]' https://localhost:8888/api/someendpoint
```
and I resize the window in a way that it does not fit on one line, nvUtltra seems to be intent to enforce block formatting and will insert spaces to ensure that the first line is formatted as a block. When moving the cursor now for example after the first word - curl - the cursor won't appear directly after the l but a bit further out into the white space. Pressing Backspace now remove the l and retains the space now between the r and the cursor.
-
I'm not sure I follow you.
What do you mean by "block formatting"?
0 -
This is how it looks when if fits on one line

and here's how it looks when it doesn't
0 -
Turn off Justified text alignment in the preferences if you don't want to use it
0 -
OK, thanks. That fixes it.
Would probably be nice to be able to choose different alignments for normal text and for code.
0 -
Will consider it for a future update.
Glad it's fixed!
0 -
I realized that I think I misunderstood your request. You can already assign specific text alignments to theme components:
"codeBlock" : {
"fontName": "Courier",
"fontScale": 0.92,
"foregroundColor": "31455E",
"backgroundColor": "D6DBDF",
"textAlignment" : 1
}
Fletcher
0
Please sign in to leave a comment.
Comments
6 comments