Email or username:

Password:

Forgot your password?
wakest ⁂

Three #fediverse projects working on rendering stylized code blocks across multiple different software. A little standardization goes along way to make this happen!

:fediverse: :fediverse: :fediverse:

Here is a post from GoToSocial rendered on:
1. #microblogpub
2. #Misskey
3. #GoToSocial

4 comments
Doofus Canadensis

@liaizon very nice indeed.

I had the most trouble reading the #microblogpub version because I've got a lot of light around me which makes dark screens problematic. But it is nice to see the consistency across the code blocks.

mike
So you're saying they use HTML in activities - and nobody has ever done that before in the fediverse?

We can do code blocks in html, markdown, and bbcode. Take your pick. There's also a styling plugin which will change colours appropriate to the language context but i don't currently have that installed here.


package main

import "fmt"

func main() {
        fmt.Println("Hello, World!")
}

package main

import "fmt"

func main() {
fmt.Println("Hello, World!")
}


package main

import "fmt"

func main() {
        fmt.Println("Hello, World!")
}
So you're saying they use HTML in activities - and nobody has ever done that before in the fediverse?

We can do code blocks in html, markdown, and bbcode. Take your pick. There's also a styling plugin which will change colours appropriate to the language context but i don't currently have that installed here.
wakest
@mike seems like the rendering of your code blocks isnt working for the second and third ones when federated over here to this instance of streams

mike
I just find it all amusing. The fediverse of today is finally beginning to catch up with the fediverse of a decade ago. Meanwhile we're working on things you'll probably discover a decade from now once other projects "invent" it, because if we do something novel and interesting nobody will ever notice or care.
Go Up