Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support bracketed paste #495

Open
Freed-Wu opened this issue Mar 28, 2023 · 3 comments
Open

support bracketed paste #495

Freed-Wu opened this issue Mar 28, 2023 · 3 comments

Comments

@Freed-Wu
Copy link

See https://en.wikipedia.org/wiki/Bracketed-paste.

Now cling doesn't support it.

[cling]$ 200~#include <stdarg.h>201~
input_line_3:2:5: error: expected ';' after expression
 200~#include <stdarg.h>201~
    ^
    ;
input_line_3:2:6: error: expected expression
 200~#include <stdarg.h>201~
     ^
@leg7
Copy link

leg7 commented Nov 8, 2023

Is there a way to declare a multiline statement?

@ferdymercury
Copy link
Contributor

Is there a way to declare a multiline statement?

Did you try like in C++, using a \ + enter ?

@leg7
Copy link

leg7 commented Apr 13, 2024

I haven't. I've only used cling a couple times to do bit manipulation stuff since then. I wanted to use it as a dev repl when I first found out about it but I couldn't get it working well enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants