|
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: 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: 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! What can I edit my .php, .htaccess, .txt, .cgi, etc. files with so it keeps the formatting?
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
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
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
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?
|
|
|
|
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. 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}
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
well, define 'free'
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
I like EditPlus ... 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.
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
well, define 'free' No money leaves my wallet for using it????
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
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.
|
|
|
|
Joined: Dec 2006
Posts: 1,235
veteran
|
veteran
Joined: Dec 2006
Posts: 1,235 |
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,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
You should take a gander at EditPlus, I myself prefer it to Notepad++
|
|
|
|
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
|
Pooh-Bah
Joined: Jul 2006
Posts: 2,143 |
Anyone remember PFE from back in the day?
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
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: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Clients/users donate me software
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
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
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
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
|
|
|
|
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
stranger
|
stranger
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,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Curious how much work it'd be to get UE to work under WINE in linux ...
|
|
|
|
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,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
'eh it depends on the level of work you want to put into it; but you can get most anything to jive...
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
'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,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Exactly; always other titles
|
|
|
|
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?! :lol: (not only is " :/ " not standard, but also " :lol: " ??!! I give up.
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,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
I run Apache on my windows servers, sorry ... lol... I only run Apache on my production servers too... Production Server: CentOS5, Apache2, PHP5, MySQL5 Dev Server: WXP SP2, Apache2, PHP5, MySQL5
|
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
1 members (Ruben),
667
guests, and
166
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|