Can you make Sublime linter work with Laravel blade? - laravel

I use http://www.sublimelinter.com in all my projects is there a linter that works in blade.php pages?
Or how can I make it to work with blade.php pages?
Thanks a lot!

Install Laravel Blade Highlighter package
https://github.com/Medalink/laravel-blade
And add to SublimeLinter settings:
"syntax_map": {
"blade": "html"
},

From my experience I use this package in Sublime Text 3, and it works like a charm: https://github.com/Medalink/laravel-blade
But I'm not sure if it will work on Sublime linter. Guess you have to try it out.

Related

Why isn't Backpack using CSS?

Installed Backpack on a fresh Laravel install. Maybe I'm missing something but is it normal for the views Backpack adds to have no CSS? It's pure HTML with no formatting. I've watched videos of people installing it and they show the webpage properly formatted.
You are correct, if properly inatalled Backpack does come with CSS and JS. To get it, you should follow the installation steps in the documentation.
One important step that you might have missed is “php artisan backpack:install”, which will also publish the needed CSS and JS.

How to set Neovim+SpaceVim to syntax highlight Hugo (markdown, TOML, Go+HTML, CSS) files?

I am on Manjaro using Neovim and SpaceVim vanilla installations. The editor works fantastically well.
Since I am new to vim-style editing, I do not want to mess my configuration. Yet I'm not very savvy about how to add plugins to Neovim+SpaceVim.
I want my Hugo files to have a proper syntax highlighting. Files's content are TOML (.toml), markdown (.md, but not .markdown), Go+HTML (.html with some Go templates inside) and CSS (.css).
I tried to use the vim-go plugin using yay package manager, but there was no syntax highlighting :(
If you could help me, please take into account that I'm very new to this vim-universe. Thanks!

Sublime text autocompletion for Laravel

Are there any plugins available to get Laravel auto completion and Laravel Blade template beautification in Sublime Text 3?
I have googled it, didn't find the right one for Laravel auto complete and not even one plugin that beautify the Laravel blade template.
There is dev4dev/blade-snippets. You can install it via Package Manager:
After installing you will be able to autocomplete Blade snippets by pressing Tab.
Some examples:
List of all snippets you can find in the project's repo: https://github.com/dev4dev/blade-snippets/tree/master/snippets
First install Sublime Code Intel plugin and then install Laravel Ide Helper.
By default Sublime Code Intel will let you autocomplete the code you write in your project e.g. extra classes, laravel's namespaces, etc but by default it will not autocomplete laravel's facades that's why Laravel Ide Helper comes to the rescure.

Laravel 4 Blade markup and Ide Helper in PhpStorm

I cannot manage to have the autocomplete in PhpStorm to work for the Laravel 4 blade.php files.
I've searched everywhere, but I cannot find other users with my problem. I have correctly installed this repository at https://github.com/barryvdh/laravel-ide-helper but I still get a blank formatting for the blade pages.
Thanks
The laravel-ide-helper package is not designed to give you autocomplete in the blade.php files. The laravel-ide-helper package is designed to give you autocomplete for the laravel facades in other PHP files.
PHPstorm does not know that code between {{ }} and {{{ }}} is PHP code so it does not know that it should provide autocomplete ability.
There is an issue on the PHPstorm Issue Tracker for syntax highlighting for the blade templating language that you should add your voice to if you wish for JetBrains to implement this feature.
As for PHPstorm 9 you just have to change the settings for blade files to recognize Laravel's tags as follows:

Add new project as an Article in joomla 1.5

I have a joomla project now currently running on.I need to add a separate php project to my joomla project as an article.here what i tried on article;
<?php
// You can place PHP like this
include "newprojectfolder/index.php?m=projects&uname=admin&pass=passwd";
?>
When I run stand alone new project on that joomla folder it works fine.
http://server/Joomlaproject/newprojectfolder/index.php?m=projects&uname=admin&pass=passwd
but when it using as a joomla article, it not shows anything...
how can i go through this?
thanks
Use Sourcerer to place any code anywhere. This module is very useful and solve TinyMCE editor problems!
view this:
Sourcerer
Joomla uses the TinyMCE editor which doesn't support writing pure PHP. Therefore you will need to download an extension that allows you to do so. Personally, if it's just PHP you want to use in an article, then I would recommend using PHP Direct

Resources