Sometimes your website needs a simple code editor that is easier on the eyes than a text box, yet quick to set up and pleasant enough for light editing work.
Whether you have code samples on your blog for people to play with, a CMS where employees want to edit email templates, or a billion-dollar app where customers want to edit CSV files they uploaded,
CodeBedder can help everyone code - better.
You might need something more advanced. This is a really simple code editor. You can't change indentation with Tab/Shift+Tab, or automatically insert spaces when you hit Enter.
Need more full-featured code editing? We can help you make the right
pick!
Contact us for consulting.
Download codebedder.js, prism.js, and prism.css, or create a custom build of PrismJS to support languages other than HTML/CSS/JavaScript. For an HTML editor use the script as follows:
<html>
<head>
<link href="prism.css" rel="stylesheet" />
</head>
<body>
<code-bedder data-language="html" onhighlight="Prism.highlightElement(this)">YOUR_ESCAPED_HTML_CODE_HERE</code-bedder>
<script src="prism.js"></script>
<script src="codebedder.js"></script>
</body>
</html>
Psst, you can also check out the source code for this page.
This library is free to use however you like.
If you need help integrating code editing into your website, we also offer the following consulting service packages:
Suitable for light editing of content like code samples or templates loaded from a database.
Example integrations:
Or some custom feature you're missing from CodeBedder?
Reach out to us to get an offer!