Skip to content

Allow passing script code in URL encoding to make it possible to integrate with ZulipΒ #28

@unfa

Description

@unfa

Hi!

Zulip is a self-hostable open-source team collaborative communication tool.
It has a feature called code playgrounds.

For example, to configure a code playground for code blocks tagged as Rust, you can set:

Language: Rust
Name: Rust playground
URL template: https://play.rust-lang.org/?code={code}
For more examples and technical details, see the help center documentation on adding code playgrounds.

Unfortunately Zulip doesn't support base64 encoding, and can't embed custom metadata that might be present there.

If this playground would allow passing the script code in uri-encoded format. Godot has tools to encode/decode text this way.
Allowing to pass raw code text and have it placed inside the ready function of a Node would mean a user can do

    for i in range(0,10):
        print("this is the number %d" % [i])

Open it in the playground , and be able to hit Ctrl+Enter to evaluate their code immediatelly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions