Deluge Code Formatting

Deluge Code Formatting

When writing context handlers it becomes extremely difficult to read the code because you can't have any line spaces.

Any possibility of improving this?

EG:
Current code works
  1. {
    context = '{"id":"Room Service","timeout":"300","params":[{"name":"room service","question":"Great! Here is a list of options for you to choose from.","suggestions": {"list":[{"text":"House Keeping"},{"text":"Maintenance"}]}},{"name":"time","question":"Okay cool. When can I send them over?","suggestions":{"list":[{"text":"Now"},{"text":"In half hour"}]}}]}'.toMap();
    response.put("context",context);
    }


Formatting code per below throws an error

  1. {
  2. context = '{"id":"Room Service",
  3. "timeout":"300",
  4. "params":[
  5.     {
  6.     "name":"room service",
  7.     "question":"Great! Here is a list of options for you to choose from.",
  8.     "suggestions": 
  9.         {"list":[
  10.             {"text":"House Keeping"},{"text":"Maintenance"}
  11.         ]}
  12.     },
  13.     {
  14.     "name":"time","question":"Okay cool. When can I send them over?",
  15.     "suggestions":
  16.         {"list":[
  17.             {"text":"Now"},
  18.             {"text":"In half hour"}
  19.         ]}
  20.     }]
  21. }'.toMap();
  22. response.put("context",context);
  23. }


    • Sticky Posts

    • Customer payment alerts in Zoho Cliq

      For businesses that depend on cash flow, payment updates are essential for operational decision-making and go beyond simple accounting entries. The sales team needs to be notified when invoices are cleared so that upcoming orders can be released. In contrast,
    • Automating Employee Birthday Notifications in Zoho Cliq

      Have you ever missed a birthday and felt like the office Grinch? Fear not, the Cliq Developer Platform has got your back! With Zoho Cliq's Schedulers, you can be the office party-cipant who never forgets a single cake, balloon, or awkward rendition of
    • Accelerate Github code reviews with Zoho Cliq Platform's link handlers

      Code reviews are critical, and they can get buried in conversations or lost when using multiple tools. With the Cliq Platform's link handlers, let's transform shared Github pull request links into interactive, real-time code reviews on channels. Share
    • App Spotlight : PagerDuty for Zoho Cliq

      App Spotlight brings you hand-picked apps to enhance the power of your Zoho apps and tools. Visit the Zoho Marketplace to explore all of our apps, integrations, and extensions. In today's fast-paced world, seizing every moment is essential for operational
    • Automate your status with Cliq Schedulers

      Imagine enjoying your favorite homemade meal during a peaceful lunch break, when suddenly there's a PING! A notification pops up and ruins your moment of zen. Even worse, you might be in a vital product development sprint, only to be derailed by a "quick