Skip to content

Instantly share code, notes, and snippets.

Working from home

Faizal Nugraha fzldn

Working from home
View GitHub Profile
fzldn / beautifier.js
Last active Feb 18, 2022
VS Code Laravel Blade formatter using extension Beautify 1.5.0 by HookyQR with js-beautify hacks
View beautifier.js
Beautifier.prototype.beautify = function() {
var source_text = this._source_text;
source_text = source_text.replace(/\{\{(--)?((?:(?!(--)?\}\}).)+)(--)?\}\}/g, function(m, ds, c, dh, de) {