Replies: 1 comment 2 replies
-
This is possible to do, but wouldn't it be better to convert document to a form with formatted json statements when passing it to editor, use normal folding to bring multiline json into one line, and then convert it back when saving the modified document? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm finding the documentation overly dense and lacking practical, real world examples. The code for existing modes is also entirely uncommented.
I have a file format with the extension of ".kvp" that looks like this:
Complex values include arrays, dictionaries, etc and are represented as single-line JSON. They can be arbitrarily complex with nested structures etc.
Where ComplexValues are single-line JSON blobs, what I actually want to render is show just the first few words followed by a button that says "[Edit Object]" or something to that effect, and it'll expand in place to a pretty-printed version of the JSON in a box (complete with normal JSON syntax highlighting and rule checking). When I retrieve the value of the document again though, it should be a single line.
Can I get some detailed guidance about how I'd go about doing this? Or frankly, if you feel you could implement this yourself - I'd be happy to simply pay a fair price for someone to implement this for me.
Beta Was this translation helpful? Give feedback.
All reactions