jboffel / smartypdt

Automatically exported from code.google.com/p/smartypdt
0 stars 0 forks source link

No syntax coloring or code completion with .tpl #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Double clicking the file or right cliking it and open with smarty editor.

What is the expected output? What do you see instead?
Syntax coloring and code completion but none of them is working. Trying to
check .tpl associations, its locked with smartypdt so it should be working.
I tried with : Zend Studio Neon Beta 1, Eclipse 3.2 and Eclipse Europa,
With those two last mentionned, I tried the PDT supplied in the downloads
section but still no result :(. I enabled the pluggin in mana configuration
btw.

What version of the product are you using? On what operating system?
WinXP
Used Eclipse Europa, 3.2, Zend Studio Neon Beta 1

Im deseparately trying to find a pdt for smarty and this one seems to be
the perfect thing.
If its an eclipse version problem, could u tell me what version I must use?

Original issue reported on code.google.com by Rat...@gmail.com on 21 Jan 2008 at 12:01

GoogleCodeExporter commented 9 years ago
do you have .tpl files associated with any other editors?  I found that syntax
colouring didn't work until I removed the old association I had with the html 
editor.

Original comment by r...@cityofcairns.com on 6 Feb 2008 at 12:45

GoogleCodeExporter commented 9 years ago
I figured out that by going under Window->Preferences

Unfold General go -> Content Types

To the right in the tree view, unfold text
goto php content type, smarty should be there so I made sure
I had no other editors using .tpl association and I had it under PHP Content 
Type
that I had manually added previously. Removed it, it now works though I found 
some
little bugs associated with smarty such as a warning showing in foreach when a
{$variable} is used between double-quotes. or sometimes line being completely 
turned
to red in this e.g: Some text I am writing with a {$variable}. Entire line gets
syntax colored in red.

Original comment by Rat...@gmail.com on 10 Mar 2008 at 6:02

GoogleCodeExporter commented 9 years ago
I have installed Zend Studio 7.1.1 and SmartyPDT 0.9.0 and can not remove the 
"*.tpl"
association under "General/Content Types/Text/PHP Content", because it's locked.
Somebody knows the trick?

Original comment by p.ulme...@gmail.com on 15 Jan 2010 at 3:05

GoogleCodeExporter commented 9 years ago
I had this issue in the past when installing SmartyPDT originally. The locked 
content
types are actually defined in various .jar archives/XML files. The one I 
changed to
remove "tpl" from the PHP content type was here (on my system):

C:\Program Files\Zend\Zend Studio -
7.1.0\plugins\org.eclipse.php.core_2.2.0.v20091227-1204\plugin.xml

Obviously your location might be different, so I recommend a "find in files" in 
your
search of choice for the string "tpl" within your Zend Studio install 
directory. 

Original comment by Fen...@gmail.com on 27 Jan 2010 at 10:05