-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Blade (extension .blade.php) files #32
Comments
Hi @Rux77 . PHP support was recently added with PHP-CS-Fixer. Does If
|
@szeck87 we need to think about the process for adding new languages and/or beautifiers. It should NOT be in Unibeautify core or the editor extensions (e.g. VSCode). We need some place which is:
🤔 |
@Glavin001 To be honest I think they should go in Unibeautify core. Languages have to be implemented there anyways. And we can make use of the issue wizard with templates. |
Sounds good. The multiple templates will be great for this. As long as beautifier-specific requests are routed to the beautifier's correct repository. I don't want Unibeautify core to get as crowded as Atom-Beautify has. |
No, it does not format the html elements.The blade files will contain html elements which will not be formatted in this case ( when I set the language to PHP) . but when I set the language to HTML it does trigger the formatting and works great. Example of blade file (before formatting): <html>
<head>
<title>App Name - @yield('title')</title>
</head>
<body>
@section('sidebar') This is the master sidebar.
@endsection
<div class="container">
@yield('content')
</div>
</body>
</html> Example of blade file (after formatting): <html>
<head>
<title>App Name - @yield('title')</title>
</head>
<body>
@section('sidebar') This is the master sidebar. @endsection
<div class="container">
@yield('content')
</div>
</body>
</html>
@section('sidebar')
This is the master sidebar.
@endsection The thing is, I need the blade syntax highlighting which I can only see it in blade language..
Thanks for your time |
Thank you for the details comment! This helps a lot. Glavin001/atom-beautify#2087 has an interesting solution to formatting Blade code. This is something which could be migrated to Unibeautify. cc @szeck87 |
I could use such a feature to configure HTML+PHP to be formatted with the HTML rules. In my case it's a *.phtml file.
|
Issue:
formatting does not work in "*.blade.php**" files..
The text was updated successfully, but these errors were encountered: