Code Block Support
James Le
Add fenced code block and highlight support similar to Markdown extended syntax when using Paragraph format.
Current Paragraph blocks do not support newline characters so copy pasting code snippets aren't formatted well. (When I try shift + enter to try and format the code, that creates a sub indented line instead of a newline char)
Log In
Narek Zograbian
Merged in a post:
Please add proper code blocks
grycarlyle
Please have an 'add code block' to the projects or just make it so code is properly formatted in the paragraph text blocks.
TBH, without meaning to be rude, I'm surprised this isn't already a thing.
Especially as Taskade obviously appeals to coders.
Not sure how hard it would be to get working but it's already an .md thing.
Thank you for your time.
PS: I chose web category but it applies across platforms.
r
ryantaskade
Merged in a post:
Wraparound Code Blocks
pharmacist
New Block Type: Allow an option for a Block to become a "wraparound or collapsing Code-Block" (you don't even need to support all the languages because that's a doozy, just maybe python, json, javascript, the basics).
___When Clicking on Code-Block: :Code block options
<> Copy code to clipboard
<> Display-Change: side-to-side scrolling vs Wrapping code.
<> Format code, to make indentation uniform and remove unnecessary spaces
<> Reset Default Display (side-to-side-scrolling vs Wrapping>
r
ryantaskade
open
Opening due to the post referring to the project editor and still receiving request for this despite Add note supporting code blocks as well.
John at Taskade
complete
Hi everyone,
Exciting news! Code Block and Copy Code snippet are now supported in both Taskade AI Chat and Agent Chat. Give it a try and check out the preview attached. Have fun experimenting with this new feature!
To learn more about creating your own Custom Agents, visit: https://help.taskade.com/en/articles/8958457-custom-ai-agents
Additionally, for using Code Block within the editor itself, remember that you can also use Comments or SHIFT + Enter to add a note: https://help.taskade.com/en/articles/8958412-multi-line-notes
Enjoy and happy taskading!
jack-s
🤔
If I paste from an external editor that has the Enter line ending character, I will be able to add such a note.
But Shift+Enter doesn't work for me.
Narek Zograbian
Merged in a post:
Code Styling
yasser.sharaf
Allow the code to be styled when inserted between 3 backticks ```
code here
``` and also be formatted in the response of the agent to be similar to the attached screenshot. In addition to the ability to copy the code itself not the whole answer.r
ryantaskade
Merged in a post:
Format code blocks in all AI related features
eddis
When I am talking to an Agent or the general AI chat, I do ask for code samples a lot, and they are always badly formatted.
Can we have them properly formatted in code blocks?
Photo sample attached
Narek Zograbian
planned
eddis
John at Taskade does this also include supporting formatting code from the Agents or AI Chat? When I get snippets it is really annoying to read. Thanks!
Narek Zograbian
eddis It would include it for that as well.
John at Taskade
in progress
Taskade Project's Comment & Chat now supports code block via simple markdown. Give it a try!
We will be adding an add-on soon that will support markdown for code snippets so you can insert them into tasks as an add-on note/description.
John at Taskade
Hi James Le Taskade Comment & Chat now supports code block via simple markdown. Give it a try!
Load More
→