FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

HTML/Code Custom Snippets?

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
samk



Joined: 28 Apr 2009
Posts: 7

PostPosted: Tue Apr 28, 2009 1:03 pm    Post subject: HTML/Code Custom Snippets? Reply with quote

Hi,

I'm new to Netbeans and very impressed so far - I might finally have found a cross-OS replacement for dreamweaver.

However, one thing I miss is the ability to quickly insert code like html into my file. Especially something I create myself. Like an often used Javascript function, or say highlight a line of text, hit a button and it wraps bold tags around the code. Etc.

Is this what the palette system is for? How would I create a custom one for just inserting some code? If not, is there a plugin for this?

Thanks!

(Edit: Woops - I meant to post this in the Users forum)
Back to top
View user's profile Send private message
Eugene Morgan
Posted via mailing list.





PostPosted: Tue Apr 28, 2009 1:36 pm    Post subject: HTML/Code Custom Snippets? Reply with quote

If you go to Tools, Options, Editor, and Code Templates, you can define snippets for different languages.

I'm not sure about highlighting a line and wrapping it in tags though ... you might be able to do that with a macro ... haven't tried it though
Back to top
samk



Joined: 28 Apr 2009
Posts: 7

PostPosted: Tue Apr 28, 2009 2:27 pm    Post subject: Reply with quote

Woah! Huge thumbs up! That's exactly what I was looking for. Thank you very, very much.

Yup, my long search for an IDE might finally be over. Wink

Now to see if it works in Ubuntu.

Smile
Back to top
View user's profile Send private message
lyceum



Joined: 29 Nov 2008
Posts: 8
Location: Ohio

PostPosted: Wed Apr 29, 2009 1:56 pm    Post subject: Reply with quote

samk wrote:
Woah! Huge thumbs up! That's exactly what I was looking for. Thank you very, very much.

Yup, my long search for an IDE might finally be over. Wink

Now to see if it works in Ubuntu.

Smile


I have been using NetBeans on Ubuntu for a year now, it is great. I am now switching from Rails development to Drupal, and it works for that too. I thought NetBeans as only being for Java (which I do not know) but it is now my fav IDE. The repos were updated in 9.04, so now you can sudo apt-get NetBeans 6.5 (though I normally use Synaptic myself).

_________________
My main OS is Kubuntu anything I ask or answer will be in that mind set. I am an artist, not a programer, so please be patient with me.

Thanks!
Back to top
View user's profile Send private message Visit poster's website
samk



Joined: 28 Apr 2009
Posts: 7

PostPosted: Wed Apr 29, 2009 4:20 pm    Post subject: Reply with quote

Cool. Thank you!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB