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.
Add support for Smarty template syntax (http://smarty.php.net). This is a popular extension to PHP, which allows much easier templating of dynamic web pages. As part of this support, it would be important to allow for alternate Smarty delimiters. The standard delimiters are braces ('{' and '}'), however many choose to use alternate delimiters--for example, delimiters that mimic comments ('<!--[' and ']-->'). Competing products include this feature in their PHP editor offerings.
Will need parser support for that, reassigning to ppisl
I witte many application, and support will help for me.
Will be support for smarty in NB6.5?
Officially there will not be any framework supported in NB 6.5.
I'd like to create a plugin for Smarty in Netbeans. With that plugin I'd like to get the Netbeans Certificate. So as to do it, I have to know that nobody's doing it now, in fact. Above of that, I'd need your acceptance and permission. If you cannot do it for me, maybe you can indicate me the person who can.
There is no plan to support Smarty in NB 7.0. It would be great if you can do it:). What is your plan? Do you have any experience with writing NB modules?
In November I've got Netbeans Platform Cetrified Associate at the course with Geertjan. Now, I'd like to get the NetBeans Certified Engineer by making this module for Smarty. Apart from that I'm a student at Warsaw University and that job will be also my course project. So that my experience is this Certified Associate and jobs we have to do in my studies. My plan is to work on it in January and February. It'd be an editor for Smarty with traditional language features. If you have any ideas about it, you see any difficulties or something else, please tell me about them:)
There shouldn't be any difficulties, but it doesn't have to easy:). It depends, what you want exactly implement. Do you have some short document with ideas? If yes, you can attach it to this issue.
The smarty plugin has been created by kajdus : http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=15679
is there any chance to get this plugin working for 6.7?
Hi. kajdus made good job. But still some features unresolved. Is there any plans to add support for nb6.7, option to change from defual tags (example: {%... %} instead of {... }), more advanced html(js, css) support? Is there any chance to get the source of plugin? Thanks.
I would absolutely love to see support for Smarty in NetBeans. I've been using Smarty since V1.something and just recently switched from ZDE to NB. Remember that Smarty support will need to include the ability to specify the Smarty delimiters. I switched from { and } to {{ and }} years ago because it removes the need for {ldelim} and {rdelim}. Thanks. D.
+1, go go! hunt
essential. Cant change fully to netbeans without smarty working properly. Love to see it.
At least syntax highlight, please
+1 also from me! PHP, HTML and Smarty is very essential for my work. I need the combination of Smarty *and* HTML editing, syntax highlighting, ... Thanks for your further work!
Hello there, is there any chance we can get the source code for this plugin [1]? i can't find it anywhere. I'm sure if the source it's available someone (including myself) will be able to develop it further. [1] http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=15679
The plugin from kajdus solves nothing since it is not finished and the source code is not available (so we could fix it by ourselves). Please consider adding at least basic syntax highlighting to netbeans, either through module or native. There is this excellent tutorial that I have followed to make a module myself, but it is a bit outdated and the approach seems deprecated: http://antonioshome.net/kitchen/netbeans/index.php Otherwise an excellent introduction to NB modules architecture. It seems a waste of time to develop things the old way, but there is a lack of good tutorials on using the new approach. For instance, Sun's tutorials seem to follow this pattern: "if you were using X, then use Y like this now..." - do I really need to learn to use deprecated X to start using Y? Any of the following would help resolve this issue: - source code to kajdus' plugin - at least basic Smarty module (syntax highlighting) so we can upgrade it - pointers to "from ground up" tutorials on NB modules (I have already invested a lot of time in this and would be happy to make an open-source module, but I am struggling with lack of good NB info. But this request probably belongs to dev mailing list... :) Mind you, NB is quite useless for PHP development (for many developers, including myself) without Smarty support. Is anyone working on this?
Officially nobody works on the Smart support yet. We talked about this support, but still not enough time to look at this. I don't know Smarty, but the support will be mainly in editor area. Is it right?
Smarty is a templating language for HTML (usually - not necessarily, but in 99.9%). Yes, support should be in editor area - no debugging and similar (even if it could be done it should be done through PHP debugger, because Smarty templates get precompiled to PHP and are then executed). I would be happy to help out - I have a good knowledge of both Java and PHP + Smarty. The problem is that I don't know NB platform enough and don't have the time to dive into it - so if there is a ready-made module for some other platform that i can use and adapt, I would be happy to do it (or a tutorial how to do it / lie the one I wrote about in previous note). I am talking about Lexer / syntax highlighting primarily, though code completion would be an interesting feature too. Of course kajdus' module code would be great too because he has done most of the work already - but I guess nobody has his/her contact? It's a shame to let a good piece of work die like that...
I too would love Smarty support... At least formatting support. I am sad to see that kajdus got 3/4 of the way done, and neglected to support one of the most important features, that being the ability to change the delimiters, as many in depth coders are likely to change the default (and problematic) delimiters.
When I include smarty tags in my html file, the 'autoformat' doesnot work properly. It does not work as it should do, all the tags after the smarty code are arranged in the single line, identation is completely lost. please provide some help.
Possible Smarty support is an enahncement, not a defect. Thanks.
Is anyone working on this? Defect or enhancement, I don't care - it is annoying... :)
Yes! You kind of HAVE to support Smarty if we expect people to adopt this as a valid PHP IDE alternative. Let's make this happen.
Initial support for Smarty available, details can be found on our blog [1]. [1] http://blogs.sun.com/netbeansphp/entry/initial_support_for_smarty_available
(In reply to comment #26) > Initial support for Smarty available, details can be found on our blog [1]. > > [1] http://blogs.sun.com/netbeansphp/entry/initial_support_for_smarty_available thanks, didnt check. i desperately waited for this.
We can close this issue, support exists. All issues please report to contrib/Smarty. Thanks.
+1 please
ffromdn, the support already exists. See: http://plugins.netbeans.org/plugin/37379