Since this is a very new community, let’s take a moment to introduce ourselves in this thread. Please share your interests and what you are working on!

  • AphonicChaos@kbin.social
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    Do code-blocks work better than on reddit for mobile?

    Fenced code block:

    module Main where
    
    main :: IO ()
    main = do
        putStrLn "Hello, kbin!"
    
    

    Indented 4 spaces:

    module Main where
    
    main :: IO ()
    main = do
        putStrLn "Hello, kbin!"
    
    

    update: Oh wow, looks like only inline code fragements work? Something like main = putStrLn "Hello, kbin!"
    update 2: No syntax highlighting at all! That’s probably a show-stopper.

    • jaror@kbin.socialOP
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      AFAIK Reddit also doesn’t have syntax highlighting, or does it? The blocks and inline code in your comment does render in a monospace font, so that’s a good first step. I also believe kbin is still very new and might get more features like syntax highlighting in the future.

      • AphonicChaos@kbin.social
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        You’re right! I think the difference is that reddit puts a background around code so it stand out from “regular” text.