You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
692 B
14 lines
692 B
extends ../template
|
|
block content
|
|
h3 DevBug supports anywhere within the reach of your network.
|
|
p You can use DevBug in any language that supports sending multipart/form-data POST requests. This is accomplished via the DevBug API. This is the same procedure the native DevBug clients use. The API is fairly simple to use and contains a single endpoint. The snippet below details how to use it:
|
|
pre#editor.inline #{devbug.code.api}
|
|
|
|
block scripts
|
|
script(src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.5/ace.js")
|
|
script.
|
|
const editor = ace.edit('editor');
|
|
editor.setTheme('ace/theme/cobalt');
|
|
editor.session.setMode('ace/mode/javascript');
|
|
editor.setOption('readOnly', true);
|