Skip to main content

Support for code blocks

We require code block support to use Featurebase. ProseMirror supports this and I see there is inline support and ``` support (albeit it's hidden and only works sometimes). This is for providing post content and replies with code examples. Ideally this needs syntax highlighting too.

Here is an example of what we currently have:

Thanks

Status: Completed3 comments

Log in to comment and vote

Comments3

  • Bruno H

    Team•

    Mar 15, 2023

    Hey! Thanks for the suggestion, a basic version of this is now released:

    <script src="https://do.featurebase.app/js/widget.js"></script>
    
    <script>
    	FeaturebaseWidget.init({
    	  organization: "yourOrganizationName",
    	  initialPage: "MainView",
    	  jwtToken: "Enter each users JWT token here",
    	  placement: "right", 
          fullScreen: false 
    	})
    </script>
    • Tim Spratt

      •

      Mar 16, 2023

      Thanks. Is syntax highlighting in the pipeline?

    • Bruno H

      Team•

      Mar 17, 2023

      Yup, it is in our backlog, but we are currently prioritizing some other stuff before it.