Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using Gedit(3.4.1) and use it to edit my website with it.
and usually when i change/remove/edit my website, i have to change all of my html
pages to make it look the same, layout wise and,
right now i am removing some code, and pasting another in it.

My question is. can i have save that code as a snippet or such??? i want to be able to drop that code onto gedit, and possibly apply that to all over my opened HTML pages

share|improve this question
add comment

1 Answer

Sir, you have your priorities wrong. Take care of your layout, learn and use CSS, ruby, php even, and you will not have to edit each and single page.

P.S. And for batch modifications of text files use awk, sed, perl, python or a multitude of other tools that can do the job more reliably than any GUI interface. For example, use a templating system in the programming language of your choice or with ad hoc bash scripts taking advantage of the power of command line.

share|improve this answer
    
I sayed layout but meant plugins like Ubuntu countdown banner/sociaal media sharing plugins(apologize ) for instance i am adding shareaholic sexybookmarks (G+/fb/twitter/reddit) and i have to paste it in all my pages –  blade19899 Sep 18 '12 at 19:30
    
So? Use server side includes, php, ruby. If you can but upload static html files to a server, then create templates and process them with perl, python or ad hoc scripts. –  January Sep 18 '12 at 20:24
    
hhhmmm, perl/python/ad hoc... don't know those programming language's? –  blade19899 Oct 3 '12 at 19:39
    
do you have any good tutorials, On what u are talking about!? –  blade19899 Nov 8 '12 at 16:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.