Adds a new checkbox setting for automatically formatting the code upon compilation request. I added a note in the setting text indicating that it only runs for languages that have a formatter set up.
* Adds more behaviours for Ctrl-S'ing an editor
It keeps backwards compatibility with the old setting
Fixes#3266
* Fix quotes
The new Node version did not run the commit checks
* Update static/panes/editor.js
Co-authored-by: Mats Larsen <me@supergrecko.com>
Co-authored-by: Mats Larsen <me@supergrecko.com>
* Touches and changes to the UI to make it more consistent
It fixes some problems, improves the UX of certain actions,
and clears some code up
* More minor tweaks to the UI
* Fix class typo
* Add compiler picker opt group header background color in default theme
* Fix conformance view
* Removes some in favour of margins
Removes boostrap-slider, there's a built-in html solution
Fixes tab width setting having a wrong input type
* More UI tweaks
* Remove empty CSS rule
It also fixes a bug where multiple sources could be created if dropped
into the same dragSource button
Moves somes _.bind(fn to fn.bind( in ts code
Closes#2895
* MVP implementation of Monaco code formatting
* Lint fixes
* Replace Ctrl + F9 keybind with monaco command to invoke formatDocument
* Use window.httpRoot definition from tree.ts
* Add definitions for C and Rust
Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
* Make /api/format handle multiple formatter types
* Ignore preferred style if the formatter is a 'one true style' formatter
* Add tests for base formatter
* Document /api/formats and /api/format/<formatter> usage
* Document adding a new formatter
* Update amazon config
Co-authored-by: Matt Godbolt <matt@godbolt.org>
* Simplify timing char handling
It also removes some duplicated code concerning the settings
while at it
* No need to make Timing a "class" anymore
* Address @partouf PR review
* Extract a compiler picker and fix up edge cases
* Use it across the three places that let you pick compilers.
* Fix a number of minor UI issues.
* When reloading a page, prefer the 'favorite' compiler selection in the selectize. Thanks @oyejorge
Co-authored-by: RabsRincon <ruben@rinconblanco.es>
Co-authored-by: partouf <partouf@gmail.com>
With huge thanks to @oyejorge
* allows favourites to be picked
* replace selectize with tom-select 1.7
Addresses (if not closes) #1917 & #257.
Co-authored-by: Matt Godbolt <matt@godbolt.org>
* Enable the editor to highlight spans in the highlighted line
* Parse and send the column numbers for LLVM AST nodes
* Highlight the part of the line corresponding to a node
For nodes that fit on a single line
* Highlight the nodes directly corresponding to symbol hovered over
Also highlight entire tokens in the source, not just their first character
* Fix the squiggly underline for string literals
It seems like clearSelection is not available anymore (Was it ever?)
Comment it out - The folding does not work as it stands,
so little is being lost as it stands right now
See issue #2561