Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

Your Answer


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.