Previous Thread
Next Thread
Print Thread
Hop To
Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
When I edit anything with notepad.exe or wordpad.exe (Win Vista) all my formatting is lost when I reopen it.

For example, I wanted to edit my .htaccess file so I start with:
Quote
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite.com/.*$ [NC]
RewriteRule \.(js|pdf|css)$ - [F]

RewriteCond %{HTTP_REFERER} iaea\.org [OR]
RewriteCond %{HTTP_USER_AGENT} Baiduspider [OR]
RewriteCond %{HTTP_USER_AGENT} BecomeBot [OR]
RewriteCond %{HTTP_USER_AGENT} BecomeJPBot [OR]
RewriteCond %{HTTP_USER_AGENT} BilgiBot [OR]
RewriteCond %{HTTP_USER_AGENT} Bot [OR]
RewriteCond %{HTTP_USER_AGENT} ContactBot [OR]
RewriteCond %{HTTP_USER_AGENT} EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} Gaisbot [OR]
RewriteCond %{HTTP_USER_AGENT} ichiro [OR]
RewriteCond %{HTTP_USER_AGENT} "Indy Library" [OR]
RewriteCond %{HTTP_USER_AGENT} IRLbot [OR]
RewriteCond %{HTTP_USER_AGENT} libwww-perl [OR]
RewriteCond %{HTTP_USER_AGENT} LinkWalker [OR]
RewriteCond %{HTTP_USER_AGENT} MJ12bot [OR]
RewriteCond %{HTTP_USER_AGENT} my-heritrix-crawler [OR]
RewriteCond %{HTTP_USER_AGENT} Psbot [OR]
RewriteCond %{HTTP_USER_AGENT} PlantyNet_WebRobot [OR]
RewriteCond %{HTTP_USER_AGENT} RobSoft [OR]
RewriteCond %{HTTP_USER_AGENT} SBIder [OR]
RewriteCond %{HTTP_USER_AGENT} shelob [OR]
RewriteCond %{HTTP_USER_AGENT} sohu-search [OR]
RewriteCond %{HTTP_USER_AGENT} sogou [OR]
RewriteCond %{HTTP_USER_AGENT} sogou-spider [OR]
RewriteCond %{HTTP_USER_AGENT} sogou-web-spider [OR]
RewriteCond %{HTTP_USER_AGENT} Twiceler [OR]
RewriteCond %{HTTP_USER_AGENT} wwwster [OR]
RewriteCond %{HTTP_USER_AGENT} Y!J-SRD [OR]
RewriteCond %{HTTP_USER_AGENT} "Yahoo! Slurp China" [OR]
RewriteCond %{HTTP_USER_AGENT} Yandex [OR]
RewriteCond %{HTTP_USER_AGENT} Yeti
RewriteRule .* - [F,L]

order allow,deny
deny from 64.92.199 #thenewpush
allow from all

Then I save it and when I reopen it again I get this:
Quote
RewriteEngine OnRewriteCond %{HTTP_REFERER} !^$RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite.com/.*$ [NC]RewriteRule \.(js|pdf|css)$ - [F]RewriteCond %{HTTP_REFERER} iaea\.org [OR]RewriteCond %{HTTP_USER_AGENT} Baiduspider [OR]RewriteCond %{HTTP_USER_AGENT} BecomeBot [OR]RewriteCond %{HTTP_USER_AGENT} BecomeJPBot [OR]RewriteCond %{HTTP_USER_AGENT} BilgiBot [OR]RewriteCond %{HTTP_USER_AGENT} Bot [OR]RewriteCond %{HTTP_USER_AGENT} ContactBot [OR]RewriteCond %{HTTP_USER_AGENT} EmailSiphon [OR]RewriteCond %{HTTP_USER_AGENT} Gaisbot [OR]RewriteCond %{HTTP_USER_AGENT} ichiro [OR]RewriteCond %{HTTP_USER_AGENT} "Indy Library" [OR]RewriteCond %{HTTP_USER_AGENT} IRLbot [OR]RewriteCond %{HTTP_USER_AGENT} libwww-perl [OR]RewriteCond %{HTTP_USER_AGENT} LinkWalker [OR]RewriteCond %{HTTP_USER_AGENT} MJ12bot [OR]RewriteCond %{HTTP_USER_AGENT} my-heritrix-crawler [OR]RewriteCond %{HTTP_USER_AGENT} Psbot [OR]RewriteCond %{HTTP_USER_AGENT} PlantyNet_WebRobot [OR]RewriteCond %{HTTP_USER_AGENT} RobSoft [OR]RewriteCond %{HTTP_USER_AGENT} SBIder [OR]RewriteCond %{HTTP_USER_AGENT} shelob [OR]RewriteCond %{HTTP_USER_AGENT} sohu-search [OR]RewriteCond %{HTTP_USER_AGENT} sogou [OR]RewriteCond %{HTTP_USER_AGENT} sogou-spider [OR]RewriteCond %{HTTP_USER_AGENT} sogou-web-spider [OR]RewriteCond %{HTTP_USER_AGENT} Twiceler [OR]RewriteCond %{HTTP_USER_AGENT} wwwster [OR]RewriteCond %{HTTP_USER_AGENT} Y!J-SRD [OR]RewriteCond %{HTTP_USER_AGENT} "Yahoo! Slurp China" [OR]RewriteCond %{HTTP_USER_AGENT} Yandex [OR]RewriteCond %{HTTP_USER_AGENT} YetiRewriteRule .* - [F,L]order allow,denydeny from 64.92.199 #thenewpushallow from all[
EVERY FLAMIN' TIME! mad

What can I edit my .php, .htaccess, .txt, .cgi, etc. files with so it keeps the formatting?

Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
I always use ultraedit - never had issues with .htaccess with that - I guess it is storing it in a different format in notepad/wordpad


Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
I did notice that when I pasted it in to the post above it had gaps between each line. When I removed them and pasted it back to the .htaccess file it kept the formatting when I saved it.

The plot thickens.

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
Originally Posted by Ian
I always use ultraedit - never had issues with .htaccess with that - I guess it is storing it in a different format in notepad/wordpad


:werd: :rawk:

Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
Ultraedit is the best text editor ever. And it's inexpensive too.



Is there a bot out there named ichiro? really?


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
Downloaded, installed and working. Looks very complicated. A bit OTT for what I need, I'll probably never use the majority of functions, but so far it's doing what's required.

Originally Posted by David Dreezer
Is there a bot out there named ichiro? really?
Yes, it's Japanese.

Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
For this case one of the nice features of UE is:

Format --> Tabs to Spaces
Format --> Trim trailing spaces

That will remove any funky formatting and then you can create your own formatting.

Maybe you just have WORD WRAP enabled on Notepad. Take a look and make sure you turn it off.

If you're editing a text file created on Linux then the formatting will be wrong for Windows. UE has something for that too
File --> Conversions --> Unix/Mac to Dos

Without getting back into a Text Editor thread - this one here is pretty capable and free

Notepad++
http://notepad-plus.sourceforge.net/uk/site.htm

{okay all you others can input your favorite free editor now} tongue

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
well, define 'free' laugh

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I like EditPlus wink...

But, the issue at hand sounds like your documents are being converted from dos to unix by your server, and you're re-downloading/opening them from there... Happens all the time on my cpanel host.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Originally Posted by Sirdude
well, define 'free' laugh

No money leaves my wallet for using it???? tongue laugh

Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Quote
Notepad++ is a free (free as in "free speech", but also as in "free beer") source code editor and Notepad replacement, which supports several programming languages, running under the MS Windows environment.
[Linked Image from kixhelp.com]

Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
Originally Posted by Gizmo
sounds like your documents are being converted from dos to unix by your server, and you're re-downloading/opening them from there
Yes. I'm using FileZilla which doesn't have a built-in editor. You have to assign an editor in the settings and that's were the problem seems to be. I assigned Notepad, then Wordpad and had the same issues with both. I've now assigned UltraEdit and it's working as it should.

Notepad++ might be more suited to my needs. Looks a little simpler than UltraEdit. I'll give them both a try.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
You should take a gander at EditPlus, I myself prefer it to Notepad++


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
Anyone remember PFE from back in the day?


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Originally Posted by David Dreezer
Anyone remember PFE from back in the day?

Yep - Programmers File Editor

Still online, not updated in years though.

http://www.lancs.ac.uk/staff/steveb/cpaap/pfe/

Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Originally Posted by Gizmo
You should take a gander at EditPlus, I myself prefer it to Notepad++

I thought you were not drowning in cash Giz??

EditPlus is okay but costs $30 more than Notepad++

EditPlus Homepage
http://www.editplus.com/



SK don't forget you had a similar topic back in July
https://www.ubbcentral.com/forums/ubbthreads.php?ubb=showflat&Board=15&Number=190327

.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Clients/users donate me software wink


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
Brief™ by Underwear was the best-est! :rawk:

B(asic) R(configurable) I(nteractive) E(diting) F(acility) FTW!

Now UE > *

Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Wow - Brief was a pain for me back then. LOL

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
dunno why it was, but diff strokes for diff folks..

Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Me like ultra edit too smile


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
UE was recently updated to v.14 for those who use it smile


- Allen
- ThreadsDev | PraiseCafe
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
I use UEStudio which was updated to 06.50+1

Lot of new changes / updates to it. Nice stuff. Built-in SSH, FTP etc..

Joined: May 2006
Posts: 16
G
stranger
stranger
G Offline
Joined: May 2006
Posts: 16
I love it too, trying to find an equivalence for linux since I am dual booting.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Curious how much work it'd be to get UE to work under WINE in linux wink...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Never tried. Some things work easily and others just won't work at all.


Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
'eh it depends on the level of work you want to put into it; but you can get most anything to jive...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Originally Posted by Gizmo
'eh it depends on the level of work you want to put into it

Not much these days. Often other ways or software to use.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Exactly; always other titles smile


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

Sheesh... Giz is practically an IIS man now?! eek eek :lol: wink




(not only is " :/ " not standard, but also " :lol: " ??!! I give up. tongue


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I run Apache on my windows servers, sorry wink... lol...

I only run Apache on my production servers too...

Production Server: CentOS5, Apache2, PHP5, MySQL5
Dev Server: WXP SP2, Apache2, PHP5, MySQL5


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
4 members (Nightcrawler, Outdoorking, Ruben, 1 invisible), 872 guests, and 274 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)