1 of 2
1
Notepad++ vs. PSpad for EE tags users group
Posted: 26 November 2008 12:51 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  867
Joined  02-28-2006

Anyone who currently uses PSpad or notepad++ for their text editor with EE?
After just installing the current version and recording a macro by simply hitting record, pasting in an EE tag like:
{exp:weblog:entries weblog=“news_articles” limit=“1”} closing tag {/exp:weblog:entries}
Then hit Stop Recording, and Save current Macro.
You then have the option to name the Macro such as expTag, and then define a keyboard shortcut right there.
Now in the text editor just hitting Ctrl + E and it pastes in that tag as above.
It might not be too tough to transpose the entire Textmate bundle then by recording each as a Macro. Running under user defined functions hopefully the keyboard shortcuts wouldn’t conflict with other shortcuts for the program.
I just figured out I think it was notepad++ not PSpad, I had used to create the macros, liking notepad++ then.

 Signature 

The most wasted of all days is one without laughter. —ee cummings
t-ee h-ee tongue laugh

Profile
 
 
Posted: 26 November 2008 01:54 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  867
Joined  02-28-2006

After looking a little more, it looks like EE could be a user defined language in PSpad, that may provide code folding, syntax highlighting, macros, etc. Just another thought, no real tutorials or anything on user customization too much besides the help files at:
http://notepad-plus.sourceforge.net/uk/UserLanguageDefineSystem-HOWTO.php
http://gogogadgetscott.info/pspad/

Happy Thanksgiving all, the only bird I’ll be having will be turk-ee!

 Signature 

The most wasted of all days is one without laughter. —ee cummings
t-ee h-ee tongue laugh

Profile
 
 
Posted: 26 November 2008 08:19 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  867
Joined  02-28-2006

I must be scatter brained, I’m confusing notepad++ docs and PSpad, hold the phones, narrowing down the choices then, both have possibilities.
On the last few days of my E text Editor trial, and the textmate bundle functionality is going to be hard to match anyways. A wise man once said about a thousand times, ya never know.

 Signature 

The most wasted of all days is one without laughter. —ee cummings
t-ee h-ee tongue laugh

Profile
 
 
Posted: 27 November 2008 05:01 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  254
Joined  05-24-2002

Some time ago I’ve been working on a “user defined language” for Notepad++ but I never had the chance to finish it as much as I would like. I’m happy to post the data I’ve got thus far, but I’m not sure if it’s the best way to do it. I just started with the few manuals that are at available.

 Signature 

You know me better than that, love. I don’t “do” anything. Things just happen.

Profile
 
 
Posted: 27 November 2008 11:49 AM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  622
Joined  11-07-2004

I’m lazy. I use notepad++ but no macro, or language stuff. just straight use

 Signature 

Member: ExpressionEngine Pro Network: ePlaces Network Services

ePlaces Network Services

Profile
 
 
Posted: 27 November 2008 12:25 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  430
Joined  02-26-2008
Ronny - 27 November 2008 05:01 AM

Some time ago I’ve been working on a “user defined language” for Notepad++ but I never had the chance to finish it as much as I would like. I’m happy to post the data I’ve got thus far, but I’m not sure if it’s the best way to do it. I just started with the few manuals that are at available.

I also started on something but haven’t really gotten it to a point where it can be useful.  Ronny, if you want to post what you have (or PM/email it to me), I’ll combine the two and maybe add some more.  Maybe we’ll end up with a useful language pack for Notepad++?

Profile
 
 
Posted: 27 November 2008 03:17 PM   [ Ignore ]   [ # 6 ]  
Grad Student
Avatar
Rank
Total Posts:  44
Joined  10-10-2007

I use custom user defined language in Notepad++ with “Port of Ruby Blue” theme. Happy to combine this with yours as well.

Image Attachments
Port of Ruby Blue.jpg
Click thumbnail to see full-size image
File Attachments
userDefineLang.zip  (File Size: 2KB - Downloads: 24)
 Signature 

.
<bio> Cem Meric | Kalkadoon | Melbourne, AU </bio>
<creative> to | amf | kmscpa | siren | hidc </creative>

Profile
 
 
Posted: 27 November 2008 04:20 PM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  867
Joined  02-28-2006

Where does the userDefineLang.xml file go then?
This article by Jon Galloway goes into some detail
Love the Ruby Blue theme, easy on the eyes.

 Signature 

The most wasted of all days is one without laughter. —ee cummings
t-ee h-ee tongue laugh

Profile
 
 
Posted: 27 November 2008 08:56 PM   [ Ignore ]   [ # 8 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1695
Joined  05-13-2004
JT Thompson - 27 November 2008 11:49 AM

I’m lazy. I use notepad++ but no macro, or language stuff. just straight use

me too, though if there was an EE language plugin, I’d install it in a heartbeat.

 Signature 

CreateSean Web Design
CreateSean - My journey to pro web designer
I am the poster formally known as The Linguist.

Profile
 
 
Posted: 28 November 2008 05:38 AM   [ Ignore ]   [ # 9 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1477
Joined  09-16-2004

Seems like we have some windows users here smile
May I remind you that e-texteditor runs on windows and supports textmate bundles?

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. LinkedIn profile

Profile
 
 
Posted: 28 November 2008 05:48 AM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  16153
Joined  05-15-2004

It’s also large and feels somewhat slow and kludgy to me. These are just personal impression, I’m sure, but I have liked Notepad++ for quite some time.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 28 November 2008 08:08 AM   [ Ignore ]   [ # 11 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  867
Joined  02-28-2006
e-man - 28 November 2008 05:38 AM

Seems like we have some windows users here smile
May I remind you that e-texteditor runs on windows and supports textmate bundles?

Thanks e-man, this would be your namesake editor then huh wink
I bit the bullet and got a working copy.
Still it will be interesting to check out some of these other free editors to see what they can do by way of custom code snippets, auto-complete, etc.

E-textEditor at $35 bucks is a pretty good deal.
ETE seems to hang up for a while on load, after that it seems to run fine, and it opens remote sites FTP, I was even able to point it directly to my templates folder, so I don’t have to view the entire web, that will save time.

Concerning notepad++ it seems to be a little tricky loading a user defined language xml file. I’ve used notepad++ forever as my default notepad. NP++ also has ftp abilities so it’s a repurposed coding toy.

 Signature 

The most wasted of all days is one without laughter. —ee cummings
t-ee h-ee tongue laugh

Profile
 
 
Posted: 28 November 2008 10:44 AM   [ Ignore ]   [ # 12 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  867
Joined  02-28-2006
Cem Meric - 27 November 2008 03:17 PM

I use custom user defined language in Notepad++ with “Port of Ruby Blue” theme. Happy to combine this with yours as well.

Tracked down the Ruby Blue theme port for NP++ it looks easy on the eyes.
thanks Cem

 Signature 

The most wasted of all days is one without laughter. —ee cummings
t-ee h-ee tongue laugh

Profile
 
 
Posted: 28 November 2008 04:34 PM   [ Ignore ]   [ # 13 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1695
Joined  05-13-2004
blues-èé - 28 November 2008 08:08 AM

I’ve used notepad++ forever as my default notepad. NP++ also has ftp abilities so it’s a repurposed coding toy.

I had no idea about the ftp ability and I also have been using notepad++ forever.

 Signature 

CreateSean Web Design
CreateSean - My journey to pro web designer
I am the poster formally known as The Linguist.

Profile
 
 
Posted: 29 November 2008 06:52 AM   [ Ignore ]   [ # 14 ]  
Grad Student
Avatar
Rank
Total Posts:  44
Joined  10-10-2007
e-man - 28 November 2008 05:38 AM

May I remind you that e-texteditor runs on windows and supports textmate bundles?

Been there, done that! No comparison, I still call Notepad++ home smile

blues-èé - 27 November 2008 04:20 PM

Where does the userDefineLang.xml file go then?


The “userDefineLang.xml” file needs to be pasted in %appdata% or in Notepad++ installation directory. I usually keep all the files in it’s installation directory and use the same folder with my usb stick as well. It’s a great utility. Did I mentioned it was free (as in “free speech” and also as in “free beer”) too wink

 Signature 

.
<bio> Cem Meric | Kalkadoon | Melbourne, AU </bio>
<creative> to | amf | kmscpa | siren | hidc </creative>

Profile
 
 
Posted: 29 November 2008 07:03 AM   [ Ignore ]   [ # 15 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1477
Joined  09-16-2004
Cem Meric - 29 November 2008 06:52 AM
e-man - 28 November 2008 05:38 AM

May I remind you that e-texteditor runs on windows and supports textmate bundles?

Been there, done that! No comparison, I still call Notepad++ home smile

Hey, I respect that, the choice of editor is a deeply personal one. Was a BBEdit man myself for the longest time but switched to Textmate last year and haven’t looked back since… some shortcuts are so engrained now that I use them even in Word or Pages (where they don’t do squat of course!).

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. LinkedIn profile

Profile
 
 
Posted: 02 December 2008 12:45 PM   [ Ignore ]   [ # 16 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  254
Joined  05-24-2002

At last I’ve been able to find my xml-file and post it. Sorry for the delay, but I just got a new job and it’s pretty busy.

Just add the xml-file in the attached rar-file to your Notepad++/api folder and in Notepad++ you can select in “Language” the ExpressionEngin language for any “EE intellisense” you need. I called it ExpressionEngin (without the final E) because, if I remember correctly, there was a limit to the length you can use.

The annoying thing is that it will recognize already a lot of EE tags, but ignores any html tags. Perhaps they could be combined? Besides that I’m not sure how to combine this file with Cem Meric’s file.

Anyway, there’s enough knowledge here to get this thing working. At least there are still a whole lot of EE tags that could be added, I believe I finished most of the “exp:weblog” tags

Let me know if you’ve got any questions.

File Attachments
ExpressionEngin.zip  (File Size: 3KB - Downloads: 17)
 Signature 

You know me better than that, love. I don’t “do” anything. Things just happen.

Profile
 
 
Posted: 02 December 2008 12:54 PM   [ Ignore ]   [ # 17 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  867
Joined  02-28-2006

Thanks Ronny I’ll give that one a whirl then, I wasn’t able to get Cem’s to work, as far as I could tell.
Did you have a chance to try using Cem’s file yet?

 Signature 

The most wasted of all days is one without laughter. —ee cummings
t-ee h-ee tongue laugh

Profile
 
 
Posted: 02 December 2008 01:40 PM   [ Ignore ]   [ # 18 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  867
Joined  02-28-2006

Cool, cool, that gives me a basic framework to help contribute now! Thanks Ronny and Mem.
I think the trick for using Ronny’s file was first go to notepad++ view | User Define Dialog…
IN the dialog box click Create New and name it the same as Ronny’s XML sheet ExpressionEngin.
Next go to the Program files folder for notepad++, for me it was:
C:\Program Files\Notepad++\plugins\APIs
And paste in Ronny’s file there, after you’ve created the dialogue for it.
Auto-completion should now work for everything in the xml sheet, styling is still another matter though.
No wait styling looks good, seems to be using the Ruby Blue theme fine smile
More to come then smile
This is starting to rock now.

 Signature 

The most wasted of all days is one without laughter. —ee cummings
t-ee h-ee tongue laugh

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66389 Total Logged-in Users: 40
Total Topics: 84714 Total Anonymous Users: 20
Total Replies: 454692 Total Guests: 190
Total Posts: 539406    
Members ( View Memberlist )