Support for regions in HTML
6 posts
• Page 1 of 1
Support for regions in HTML
Hey Guys....
I would be awesome if the regions were supported in HTML markup for PHP and HTML pages. The following is an example of how this may be implemented:
Regards,
Scott
I would be awesome if the regions were supported in HTML markup for PHP and HTML pages. The following is an example of how this may be implemented:
- Code: Select all
<!--#region Layout Templates -->
<script type="text/x-kendo-template" id="testLayoutTemplate">
<# for (var i = 0; i < data.length; i++) { #>
<li>
<#= data[i].Name #>
</li>
<# } #>
</script>
<!--#endregion-->
Regards,
Scott
- codeowl
- Posts: 51
- Joined: February 10th, 2013, 10:05 am
Re: Support for regions in HTML
Isn't there already regions settings in legacy HTML editor? So we would do it in the same way.
Thanks,
Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Support for regions in HTML
Jakub,
Not sure what you mean mate. The code sample I posted doesn't not turn into a region in a PHP Tools Project when I create a new HTML page and past the code in there. The Script tag collapses, but I want to put several script tags inside a region.
Can you give me a code sample of how to do a region in a HTML page created in a PHP Tools Project?
Regards,
Scott
Not sure what you mean mate. The code sample I posted doesn't not turn into a region in a PHP Tools Project when I create a new HTML page and past the code in there. The Script tag collapses, but I want to put several script tags inside a region.
Can you give me a code sample of how to do a region in a HTML page created in a PHP Tools Project?
Regards,
Scott
- codeowl
- Posts: 51
- Joined: February 10th, 2013, 10:05 am
Re: Support for regions in HTML
PHP editor does not have HTML regions yet. I'm just curious whether HTML editor supports some sort of regions, so we would do it in the same way in PHP editor.
Thanks,
Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Support for regions in HTML
Jakub,
Ok cool, well no the HTML editor for an ASP project does not support regions as I have outlined.
Also in a PHP Tools project Javascript files don't seem to support regions either:
Eg;
Doesn't show as a collapsible region...
Regards,
Scott
Ok cool, well no the HTML editor for an ASP project does not support regions as I have outlined.
Also in a PHP Tools project Javascript files don't seem to support regions either:
Eg;
- Code: Select all
//#region Test Region
function testFunctionOne() {
}
function testFunctionTwo() {
}
//#endregion
Doesn't show as a collapsible region...
Regards,
Scott
- codeowl
- Posts: 51
- Joined: February 10th, 2013, 10:05 am
Re: Support for regions in HTML
If HTML editor does not support them, I'm not sure if we could. We'll definitely investigate this more.
Currently regions are supported only in PHP code. HTML/CSS/JS are different languages.
BTW regions can start with // too, so following would work:
//region
//endregion
Currently regions are supported only in PHP code. HTML/CSS/JS are different languages.
BTW regions can start with // too, so following would work:
//region
//endregion
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 64 guests