Skip to main content

Bug with extended syntax

The following Markdown code does not render at all in preview mode:

```json

{

"firstName": "John",

"lastName": "Smith",

"age": 25

}

```

Status: In Progress6 comments

Log in to comment and vote

Comments6

  • Gary Bacon (pixelbud)

    Team•

    Nov 12

    Thanks for the report. Code blocks now draw as one panel with their own colors, and JSON shows its keys, values and numbers apart. With Hide Markdown Syntax on, the backticks are hidden. This is coming in the next update.

    • Another Gary

      •

      Nov 13

      One small suggestion: would it be possible to add a dedicated copy button to each code block? It would be a really nice touch, especially for longer snippets.

    • Christophe HUMBERT

      •

      Nov 19

      Thank you! I noticed the change in the latest Smolpad update, and it functions well with JSON syntax. One question: do you know why syntax highlighting applies only to JSON and not to PHP or other languages?

      • Gary Bacon (pixelbud)

        Team•

        Nov 20

        Glad it works. Smolpad colors code in nine languages for now: Swift, JavaScript, TypeScript, Python, JSON, shell, HTML, CSS and Markdown. PHP isn't one of them yet, so a PHP block shows as plain text. We'll add it.

        • Christophe HUMBERT

          •

          Nov 20

          Thank you!

    • Gary Bacon (pixelbud)

      Team•

      Nov 20

      1.4.2 is out now on the Mac App Store with the new code blocks, and each one has a Copy button at its bottom right corner. PHP coloring is finished and will come in a later update.