# Can my pasted code run exactly as written, scripts and all?

Yes: a Code part runs your own HTML, CSS and JavaScript exactly as you wrote them, so sums, balances, saved data, forms and screens your script builds all work, on the canvas, in Preview and on the live site. Paste it with Paste HTML and choose Run it exactly as written (a Code part), or paste it into a page's file in Developer mode and choose Run it exactly as written when Furge asks how it should come in; you can also add one from Add → Media → Code. A whole app gets a page of its own and fills the window on the live site. Select it and press Edit its code to change it: it's a file of its own in Developer mode, saved exactly as written. It runs sealed off from Furge and from the rest of the page, so it can't reach your account, your site's visitors' sign-ins or Furge itself; what it saves with localStorage is kept for it on each visitor's device. Its words and pictures are changed in its code, not on the canvas: by you, or by Furge AI from its own Furge AI box, which changes only what you ask and tries it before it says it's done. To change things on the canvas instead, choose Rebuild it with Furge's parts. A Code part is one file: if your page links to style.css or script.js, paste them in the CSS and JavaScript boxes below the code and Furge puts each where its link was.

1. Open Paste HTML (Developer → Code → Paste HTML), paste your code and choose Run it exactly as written (a Code part).
2. If it links to style.css or script.js, paste them in the CSS and JavaScript boxes that open.
3. Press Add to page: it runs on the canvas straight away.
4. Select it and press Edit its code to change it; try it in Preview, then publish.

Also asked as: run my code as written; run it exactly as written; keep my javascript working; my app's script should run; paste a whole app; paste my app and keep it working; code part; code block; custom code block; embed my own html; html embed; run my html css and javascript; my balance doesn't change; my transfer doesn't work after pasting; localstorage in my code; my own app inside furge; like vs code; as effective as vs code; code that runs on the canvas

Page: https://furge.app/docs/code-part

## Related

- [Why does my pasted code show as plain text, without its style.css or script.js?](https://furge.app/docs/code-files.md): A Code part is one file with nothing beside it, so files your code links to by a path of its own, like style.css, script.js, logo.png or data/items.json, aren't there to load: the code shows without its look (plain words, one under another), its buttons do nothing and its pictures are missing.
- [Can Furge AI write the code for me, and fix it?](https://furge.app/docs/ai-code.md): Yes.
- [Is there a handover document for my project (for a developer, a designer or a client)?](https://furge.app/docs/project-md.md): Yes: PROJECT.md.
- [Can I change my site's code on GitHub (or in VS Code) and bring it back into Furge?](https://furge.app/docs/source-control.md): Yes.

From Furge's docs: Designing in the studio. Every answer, with a link: https://furge.app/llms.txt. All of them in one file: https://furge.app/llms-full.txt.
