Support block codes

textediting

#11

Thanks for the feedback. I did look into this. It is not quite as simple as it seems in our system, but we are would like to add something like this. Thanks!


#12

Nothing is ever “fairly simple” right? :grin:


#13

Just added this. Next release will support this. If you type ``` and a space, you will be in preformatted mode.


#14

Great! Sounds good and intuitive :blush:


#15

Would like to see proper code blocks like how Quiver does it. Nevertheless, I really like what you guys have made. I am a fan of Agenda now.


Share your feedback with us…
#16

The preformatted mode is still pretty far from what it’s supposed to be. Besides, I often find it hard to read or find what I need when both types of text are mixed together.


#17

What are you missing in the preformatted style, aside perhaps from source code colored highlighting?


#18

Colored highlighting would be fantastic.


#19

Just wondering there is any update in this matter. Are you currently working on that feature or is something for the future?


#20

Something for the future I’m afraid, see The features we are working on right now…


#21

+1 for seeing the code sections with a slightly different background, even if it was subtle. At the moment they are hard to distinguish from the other text for me.


#22

Thanks for being honest I appreciate that. However I don’t believe Agenda now fits with my professional needs. Perhaps in the future when those small things will be added I’ll reconsider.


#23

Sure, fair enough, be sure to keep an eye on Agenda!


#24

The ``` + space / return still not working for me


#25

Ah, I just checked but the trick is not to let it follow by a space or return but directly by the content you want to escape.


#26

It works a bit different to in a markdown editor. Usually you just have the three ticks at the start and end of the block, but in Agenda we don’t preserve the markdown, so it works more like a toggle. Type the ticks, enter a space, and then start typing your preformatted content (no return). It will change to preformatted.


#31

Just adding another vote for code blocks. There’s a plugin that everyone uses that supports a ton of languages, that finally added Swift support.


#32

Do you know which plugin it is?


#36

I think it must be this one. I remember for a while they did not support Swift but they do now.


#37

Thanks Rob!