Language formatting for YAML, JSON etc

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
jeremyg
Posts: 19
Joined: Sun Mar 23, 2008 2:04 pm

Language formatting for YAML, JSON etc

Post by jeremyg » Fri Aug 02, 2019 11:53 am

Seems like PrimalScript doesn't support these kinds of configuration files for formatting. (oddly enough, PrimalPad "kind of" does display them will with collapsible regions, etc) Is there any plan to do so?

If you don't know, YAML is a terrible file format which some cloud tools utilize. There's almost no syntax characters, and whitespace matters.

User avatar
Alexander Riedel
Posts: 7001
Joined: Tue May 29, 2007 4:43 pm

Re: Language formatting for YAML, JSON etc

Post by Alexander Riedel » Fri Aug 02, 2019 12:14 pm

Yeah, I can see the lack of structure :D
I will look into it. What particularly are you looking for? Simply coloring or ... ?
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
jeremyg
Posts: 19
Joined: Sun Mar 23, 2008 2:04 pm

Re: Language formatting for YAML, JSON etc

Post by jeremyg » Fri Aug 02, 2019 1:14 pm

Yea mostly coloring. It sucks because the indents in YAML is "two spaces", so if normal indent is something different that's probably a feature of the editor as a whole not the language definition.

I'm actually surprised there's no JSON Language in PrimalScript, that's an extremely common format, and it was added in primalpad.