diff --git a/app/assets/dash_v1.css b/app/assets/dash_v1.css index 109260e..493e08a 100644 --- a/app/assets/dash_v1.css +++ b/app/assets/dash_v1.css @@ -85,6 +85,11 @@ pre {outline: 1px solid #ccc; padding: 5px; margin: 5px; } z-index: 0; } +#editor.inline { + height: auto; + min-height: 200px; +} + /* New Theme Styles */ body { margin:0; diff --git a/app/views/dash_v1/use/api.pug b/app/views/dash_v1/use/api.pug index 0987ecc..7140958 100644 --- a/app/views/dash_v1/use/api.pug +++ b/app/views/dash_v1/use/api.pug @@ -2,7 +2,7 @@ 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 #{devbug.code.api} + pre#editor.inline #{devbug.code.api} block scripts script(src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.5/ace.js") diff --git a/app/views/dash_v1/use/ecma.pug b/app/views/dash_v1/use/ecma.pug index b3b2286..b76d46d 100644 --- a/app/views/dash_v1/use/ecma.pug +++ b/app/views/dash_v1/use/ecma.pug @@ -6,7 +6,7 @@ block content p This function is similar to logging data. It stores data to be outputted to DevBug. The first parameter should be a string with a brief description of the data, and the second is the data to be outputted. Note that the info string should be unique and multiple outputs with the same name will overwrite their predecessors. It's important to note that calling this function doesn't actually send any data to DevBug. Instead, it stores it to be sent. h4 breakpoint(continue = false, name = "") - send the outputted data to DevBug p This is the magic of the operation. When this function is called, any data that has been passed to the output function will be sent to the DevBug server and stored under the configured project. There are several things you can change about this function. The continue parameter determines whether or not program execution continues, or if the interpreter's exit method is called. The name parameter allows you to change the name of the breakpoint. This can be useful to help distinguish multiple breakpoints in the DevBug dashboard. Note that the continuation parameter is non-functional in browser-based ECMAscript. - pre#editor // Run the following as early in your application as your can: devbug_url="http://localhost:8000/"; project_api_key="CHANGEME"; + pre#editor.inline // Run the following as early in your application as your can: devbug_url="http://localhost:8000/"; project_api_key="CHANGEME"; block scripts script(src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.5/ace.js") diff --git a/app/views/dash_v1/use/main.pug b/app/views/dash_v1/use/main.pug index 5312799..e3fd8e1 100644 --- a/app/views/dash_v1/use/main.pug +++ b/app/views/dash_v1/use/main.pug @@ -25,7 +25,7 @@ block content ul li New navigation theme with sticky navigation bar to make the display cleaner li Separate "editor mode" layout for views using Ace.js - li Out viewer now uses editor mode. + li Out viewer and snippet editor now use editor mode. h4 v0.5.1 - Use Ace.js for Outputs ul diff --git a/app/views/dash_v1/use/node.pug b/app/views/dash_v1/use/node.pug index 15c5673..c45e16f 100644 --- a/app/views/dash_v1/use/node.pug +++ b/app/views/dash_v1/use/node.pug @@ -6,7 +6,7 @@ block content p This function is similar to logging data. It stores data to be outputted to DevBug. The first parameter should be a string with a brief description of the data, and the second is the data to be outputted. Note that the info string should be unique and multiple outputs with the same name will overwrite their predecessors. It's important to note that calling this function doesn't actually send any data to DevBug. Instead, it stores it to be sent. h4 breakpoint(continue = false, name = "") - send the outputted data to DevBug p This is the magic of the operation. When this function is called, any data that has been passed to the output function will be sent to the DevBug server and stored under the configured project. There are several things you can change about this function. The continue parameter determines whether or not program execution continues, or if the Node.js exit method is called. The name parameter allows you to change the name of the breakpoint. This can be useful to help distinguish multiple breakpoints in the DevBug dashboard. - pre#editor #{ devbug.code.node } + pre#editor.inline #{ devbug.code.node } block scripts script(src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.5/ace.js") diff --git a/app/views/dash_v1/use/php.pug b/app/views/dash_v1/use/php.pug index 4bdadc5..e79a6e6 100644 --- a/app/views/dash_v1/use/php.pug +++ b/app/views/dash_v1/use/php.pug @@ -6,7 +6,7 @@ block content p This function is similar to logging data. It stores data to be outputted to DevBug. The first parameter should be a string with a brief description of the data, and the second is the data to be outputted. Note that the info string should be unique and multiple outputs with the same name will overwrite their predecessors. It's important to note that calling this function doesn't actually send any data to DevBug. Instead, it stores it to be sent. h4 breakpoint(continue = false, name = "") - send the outputted data to DevBug p This is the magic of the operation. When this function is called, any data that has been passed to the output function will be sent to the DevBug server and stored under the configured project. There are several things you can change about this function. The continue parameter determines whether or not program execution continues, or if the PHP exit method is called. The name parameter allows you to change the name of the breakpoint. This can be useful to help distinguish multiple breakpoints in the DevBug dashboard. - pre#editor #{devbug.code.php} + pre#editor.inline #{devbug.code.php} block scripts script(src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.5/ace.js")