How to format code in your posts

Code Formatting

When pasting code in your posts, please use the following formatting options, in order to be sure your code is readable and well formatted for the rest of the users.

Inline code formatting

Surround a section of code with backticks (`) inline code formatting.

Typing:

`var x = 10;`

Results in:
var x = 10;

This can also be done as var x = 10; inline.

Multi-Line Blocks of Code

Surrounding code with three backticks ``` will allow for code to span multiple lines

Typing:

```
function foo(bar){
return bar+1;
}
```

Results in:

function foo(bar){
    return bar+1;
}

Syntax Highlighting

The code block will try to automatically choose a style for code, but you can explicitly call out the desired formatting.

```javascript
function foo(bar){
return bar+1;
}
```

Results in:

function foo(bar){
    return bar+1;
}
14 Likes
App connect issue with Bootstrap Modal Form using jQuery Validate
Dynamic Attribute "Show" with a variable doesn't work
Truncate inner html
Tutorial for the database multi update
Mobile app framework7 on-click redirect from repeat list based on query params
Mobile app framework7 on-click redirect from repeat list based on query params
Includes on all pages
Registration form does nothing
How to add an icon to a browser tab
Filter repeat in masonry
How to use for select option to post to the database
How-to Form Fields with 'Required' indicators?
Database query not showing in select field
SVG with URL link inside how to wait?
How to add multiple Where conditions on array
Populate drop down through list(taken from a json)
Trying to get simple hyperlink to work
Trying to get simple hyperlink to work
Bootstrap Confirmation dialog CSS dmxbootbox and dmxbootbox5?
Layout page blanked. How to prevent?
Formatter and Condition
Remove containers outlines
Calculation cart total
Select Option Value not displayed in form input
Configurable opening hours on Calendar
Endless validation issues with multi-step form
Flow not showing Else
Wappler keeps looking for index.html.ejs in Framework7 project
Hamburger Menu dropdown not working on website
Sending response to client side
Show hide table element not working
Repeat column, class toggle, Bug?
Style file association in same directory
Update Form not doing anything at click
Reload after update in modal
Filtering a table gives results in a big gap between search container and results
Alert taking up space when hidden
Bug Report from PaulBS #2021-6-22_12-17-11
How to change the font and grid color in Charts component
Send mail doesn't work
Problem with saving date...30 days back
Get value by Select Max
Advice on the best way forward
Options for using node in browser
Accordion error when setting parent
Node.js PWA
Dmx.app.set giving undefined value
Dynamic background image
Dynamic value for counters
Adding Custom font locally
Class toggle with repeat element
Error message when using Session Manager
Need help with set-up of custom query using $_GET variables for use in search fields
Make Repeat Children - table rows disappear when expression is selected
Can you set a variable value based on @media condition... i.e. BS4 breakpoints?
Server side API parsing data for frond end issue
Using Summernote WYSIWYG Editor
NavTab active set on Modal show table invisible