Flint logo

How do I add code to Flint?

How to use the code editor to add and edit code in Flint chats and assignments.

Updated September 11, 2026

Here's how you can add code snippets to the AI chat on Flint:

  1. After navigating to the AI Chat, click the code icon (</>)
  2. Then, change the language from "java" to whichever language you'd like
  3. Next, write or paste any code that you'd like into the interactive code editor.
  4. Once you're done, click the "Insert" button. This will format and insert the code into the textbox in a format that the AI can understand.
  5. Feel free to ask any questions about the code!