This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256599 - Blade template syntax @section('name') causes HTML warning
Summary: Blade template syntax @section('name') causes HTML warning
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-14 18:29 UTC by guoyunhebrave
Modified: 2016-05-25 07:15 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description guoyunhebrave 2015-11-14 18:29:13 UTC
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>@yield('title')</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        @section('styles')
        <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <link href="/css/main.css" rel="stylesheet" type="text/css"/>
        @show
        @section('scripts')
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js" type="text/javascript"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="/js/main.js" type="text/javascript"></script>
        @show
    </head>
    <body>
        Content...
    </body>
</html>

-----------------------------------------------

In this master.blade.php file, I used Blade template syntax @section() , then at <body> tag, here will be red warning

http://i.imgur.com/Emzdtmd.png

Is @ an invalid markup in PHP/HTML?
Comment 1 Tomas Mysik 2016-05-25 07:15:23 UTC
Blade is not supported by NetBeans, sorry.

Thanks for reporting.