May 07, 2020 04:08 AM
I’m trying to create a programming quiz, and wanted to be able to add a syntax highlighted code snippet to some of the questions. I could add the content in description, but it would have no syntax highlighting. Is there a way?
May 07, 2020 04:29 AM
Hey there! I’m not sure I understand this query - Can you share a screenshot of what you’re trying to do please?
May 07, 2020 05:51 AM
@Nikhil_CSB You can’t highlight different parts of your code with different coloring, but you can highlight an entire block of code in long text fields that are set to allow rich text formatting.
Here is the markdown formatting you can use:
Rich text in Airtable is based on on a variation of Markdown, a lightweight and readable syntax for formatting. You can use Markdown in the following areas in Airtable: Base descriptions Long text...
There is also a toolbar that appears that lets you choose the formatting you want.
Note that there are currently bugs with Airtable’s markdown formatting, because the markdown formatting will NOT respond to bold & italic markdown. (Your only option for bold & italics is to select them from the toolbar or use keyboard shortcuts.)
May 07, 2020 09:01 AM
I want to syntax highlight the code.
May 07, 2020 09:04 AM
Thanks for the reply. I’ve seen code snippets in MarkDown, where we can specify the language and it would get the syntax highlighting. I was looking for something like that. Also, it would be nice to have MD to be used in questions, that’ll let us format the question more accurately.
May 07, 2020 09:31 AM
Lots of content development effort, but this will probably achieve the desire to have a nice looking quiz -