Jump to content

HTML editing woes


Urza9814
 Share

Recommended Posts

Aight, I need to change the location of 2 pictures for my site...on about 40 pages...I need a prog that's small, simple, and'll just show me the HTML. I don't want it to take 20 minutes to load like openoffice.org writer, and I don't want it to show the actual site and not be able to do HTML like everything I've tried so far...basically, I want a linux version of the windoze prog 'notepad'...nothing extra, no fancy stuff, and ONLY SHOW THE HTML!!! :furious3:

these progs are too good for their own good! my comp is old...until I get more RAM next week it's really slow...I need something small and compact that'll get the job done with none of that extra crap... :wall:

Link to comment
Share on other sites

Emacs, nano, pico, gedit, kate, jEdit, etc

 

That enough for you?

 

Personally, if you have java installed correctly, I would suggest going with jEdit.

http://www.jedit.org

But any of the above editors will work. jEdit is nice in that it supports regular expression searches. Emacs and vim also support these, but are not as easy to use.

Link to comment
Share on other sites

vi !!!

<!--QuoteEBegin-->vi *.html<!--QuoteEBegin-->:%s/http:\/\/yourdomain.com\/nameofpic.jpeg/http:\/\/yourdomain.com\/nameofpic.PNG/g<!--QuoteEBegin-->:w<!--QuoteEBegin-->:n<!--QuoteEBegin-->

:D

or bash + sed!!! at least that would be my choice for that task, vi would be too heavy for me (although if Urza9814 wants to do it in an interactive text editor I also suggest vi):

 

~$ for file in *.html; do 
> cp ${file} ${file}.bak
> sed 's@\(http://yourdomain.com/nameofpic\).jpeg@\1.PNG@g' ${file}.bak > ${file}
> done

~$

 

then if all is OK, remove those .bak files

 

:juggle:

Link to comment
Share on other sites

wow...thx :-P

I actually just noticed last night as I booted into IceWM instead of WindowMaker for this, and was looking at other progs, that wine has notepad...so I was using that...I woulda posted this then...but it was 10:00...and I still wanted a linux prog...thx

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...