You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you request code from gpt, it returns the code in markdown format, which is then formatted and styled with css.
The problem here is that when copying & pasting code in HAWKI, the first line indicating the programming language is always copied to the clipboard. In the chatGPT UI this line is excluded from the clipboard.
I got feedback from users in tech that this is annoying because you can't paste the clipboard content directly into terminal apps ect. and need to remove this first line manually.
My suggestion is to modify the highlight function to exclude the first line. As seen in the ChatGPT UI, the first line is also excluded from the code:
The following is the plain text output from OpenAI Playground (I had to include the > signs to prevent the editor from generating a markdown formatting error):
Eine "Hello World" Nachricht in Python zu erstellen ist sehr einfach. Hier ist ein Beispiel dafür, wie man es macht:
>```python
>print("Hello World")
>```
Dieser Code benutzt die Funktion `print()`, um den Text "Hello World" in der Konsole oder im Terminal auszugeben. Du kannst diesen Code in jeder Python-Entwicklungsumgebung oder direkt im Python-Interpreter ausführen.
The screenshot shows how it's rendered in HAWKI, the pasted clipboard content is highlighted in the input field.
The text was updated successfully, but these errors were encountered:
When you request code from gpt, it returns the code in markdown format, which is then formatted and styled with css.
The problem here is that when copying & pasting code in HAWKI, the first line indicating the programming language is always copied to the clipboard. In the chatGPT UI this line is excluded from the clipboard.
I got feedback from users in tech that this is annoying because you can't paste the clipboard content directly into terminal apps ect. and need to remove this first line manually.
My suggestion is to modify the highlight function to exclude the first line. As seen in the ChatGPT UI, the first line is also excluded from the code:
![Bildschirmfoto 2024-04-18 um 14 02 36](https://private-user-images.githubusercontent.com/121229940/328901295-ebae1c1e-3a58-411c-beb3-8edcada61e6f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzkxMDgsIm5iZiI6MTczOTQ3ODgwOCwicGF0aCI6Ii8xMjEyMjk5NDAvMzI4OTAxMjk1LWViYWUxYzFlLTNhNTgtNDExYy1iZWIzLThlZGNhZGE2MWU2Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QyMDMzMjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ODVkNTM5N2Q2ZTc2NTBkYjFiZDk5MDE5NTdjZWQwMjZiOGE4MDU3NmEwMTYyYmI5ZDg2MjgwMDFhZDk5N2UwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.i7QY7v0h67mga7iH3TWppFYJySaAlD4KPFoTQs1daGk)
The following is the plain text output from OpenAI Playground (I had to include the > signs to prevent the editor from generating a markdown formatting error):
The screenshot shows how it's rendered in HAWKI, the pasted clipboard content is highlighted in the input field.
The text was updated successfully, but these errors were encountered: