Jump to content

HOW TO highlight smarty in Notepad++


Psttt ! A little question !   

45 members have voted

  1. 1. What do you think of NotePad++

    • Notepad++ ? It's AWSOME !! greater than anything (believe me !)
      18
    • Notepad++ ? It's very usefull, and I use it for 80/90% of my needs
      24
    • Notepad++ ? It's usefull, but must be used in compagnon with others tools (please name it ;) )
      2
    • Notepad++ ? Hum, yes, usefull sometimes, for speedy editing, but only 20% of time.
      0
    • Notepad++ ? this CRAP ????
      1
    • Notepad++ ? Nespresso ? What else ? What's that ?
      0
  2. 2. Do you think other webmasters should use it ?

    • Yes ! sure ! just go on and enjoy !
      29
    • Yes, it's useful, but not alone.
      14
    • Yes, it COULD be useful...
      1
    • Yes. If you're a rich american guy who want's to create IronMan from scratch. But there is much better choice !
      0
    • OK. Let's be clear. JUST FORGET IT !
      1
  3. 3. Do you / did you use the smarty Highlight ?

    • Hey, dummy, I used for years ! Your post is a waist of time !
      6
    • Oh ! Great ! I didn't know it was existing ! Thanks a lot, man !
      30
    • Hu ? What's this app ? It's useless, userLangDefine.xml or not !
      2
    • Do you know what means "JUST FORGET THIS CRAPPY APP !" ?
      1
    • Do you REALLY think your post is clear enough to be read ?? Rewrite it, and we'll see !
      1
    • JOKER. or BATMAN. (wrong answer anyway !)
      3
    • I'm unable to install it. Or I missed something ! (and I will immediately complain in this thread to cry my frustration)
      2


Recommended Posts

After a look in Googleuuh, it was not easy to find a

'how to' for Smarty in Notepad++.

 

Here is an answer, 'coz I *think* it *might* help some dummy loosers like I am... Hum, I mean some poor lonesome webmasters.

 

in order to highlight SMARTY code in Notepad++, you have to use a xml dedicated file, called 'userDefineLang.xml'.

- If it exist, it is in the Notepad++ folder. (you will have to append the xml for smarty to the file)

- If it doesn't exist, just rename the xml smarty file from userDefineLang_smarty.xml to userDefineLang.xml

 

:blink:NOTE : by default (installation from scratch), the 'userDefineLang.xml' file does NOT exist. Just copy the userDefineLang_smarty.xml in the Notepadfolder and rename it to userDefineLang.xml ! easy !!

 

:blink:NOTE2 : Vista & Win7 users : Watch out ! Notepad is not very compliant with the %APPDATA% folders, du to the 'accessing and writing protection' used in Vista / Win7.

So,

- Do NOT install by default Notepad++,

- use an OTHER folder than the 'application folder', and

- install it "as a stand alone application" (it's asked in the process on installation). ...If you NOT do so, you'll NOT be able to overwrite / create the userDefineLang.xml file, and Notepad++ will not work well. (I tested :evil: and reinstalled !)

 

:unsure: NOTEPAD++ (new) home site :

http://notepad-plus-plus.org/

 

:unsure: the USER LANG WIKI home page :

http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Language_Files

 

:unsure::unsure:The userDefineLang.xml source's for smarty, called userDefineLang_smarty.xml :

http://notepad-plus.sourceforge.net/commun/userDefinedLang/userDefineLang_smarty.xml (just download it and rename !! ;) )

 

 

Enjoy !

 

HelloTheWorld, proud french webmaster of

http://www.gastronomieartisanale.com/

 

 

 

Edit :

PS :

I made a small poll survey... Please answer it ! It wight be usefull ofr other Prestashoper's...

  • Like 1
Link to comment
Share on other sites

  • 10 months later...
  • 4 weeks later...

Doesn't work : I pasted the userDefineLang_smarty.xml in C:\Program Files\Notepad++ and renamed it to userDefineLang.xml. No way to find smarty in the language selector. I'm under Windows XP, latest Notepad++ version.

 

That's not the first time I try to do it...

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
  • 7 months later...
  • 1 month later...

yes, you've got right Benjamin. I checked it and it works fine, now i can see beautifull smarty code ;-)

regards

I have use netbeans current version 7.3 which helps you to view smarty tag highlight and also you are able to got smarty function if you press ctrl+space . it will show all the smarty function.

 

But notepad + plus is light weight and good. If smarty function intelligence add it will be awesome I have use notepad++ from lots of days :)

Edited by smartdatasoft (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...