Skip to main content

Copy code in KB

Could the text editor have an option to insert lines of copyable code?

Status: Complete14 comments

Log in to comment and vote

Comments14

  • Yellow Coaster

    •

    Oct 23, 2024

    Kristen W. this can be marked as complete

    • Tomato Melon

      •

      Apr 28, 2025

      Oliver where? I don't see this option when adding inline code or code samples?

    • Yellow Coaster

      •

      Apr 29, 2025

      Stefan M.

    • Tomato Melon

      •

      Apr 29, 2025

      Oliver Ahh interesting, you can't select text and then select that or 'inline code', you need to click that button then paste the code in. Thanks for that, not completely ideal but now that I know that exists we'll do it that way!

  • Indigo Magnetosphere

    •

    Apr 20, 2020

    I posted something similar - https://hudu.canny.io/feature-requests/p/formatting-on-code-blocks - but, this looks neater…
    If I can also suggest:

    1. Language and Syntax detection / colour highlight
    2. Line numbers
      And then, happy to close my suggestion.
  • Tomato Melon

    •

    Apr 28, 2025

    I don't see this option when adding inline code or code samples?

  • Magenta Sun

    •

    Apr 22, 2020

    This would be very useful for documenting processes as well. Code-boxes are great!

  • Kristen Wasko changed status to Complete
    Team•

    Oct 23, 2024

  • Red Spool

    •

    Jan 23, 2021

    +1 This would greatly help process lists..

  • Indigo Magnetosphere

    •

    Apr 15, 2020

    Great idea!

    • Yellow Coaster

      •

      Sep 25, 2024

      The Hudu Team You have this now you can mark it as complete

    • Tomato Melon

      •

      Apr 28, 2025

      Oliver where? I don't see this option when adding inline code or code samples?

  • Ivory Control

    •

    Jun 21, 2021

    +1 Yes please would really save a lot of copy/paste errors

  • Lime Koala

    •

    Jul 22, 2023

    Also would be useful to include an option to have a prompt (that would not copy) which would tell the user what context to run in. For instance in linux $ commonly denotes run as user whilst # is run as root. There are windows examples too with things like PS prefixes.