Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 6th, 2003, 08:17 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default FAQ: Text editors and hot keys

When I started programming I found some very common annoyances in using different text editors. I thought I would share my findings with the community here.

[u]FrontPage 2000:</u>
I started out using FrontPage 2000, which can be useful for a few things. What I liked most about FP 2000 was its ability to use both the WYSIWYG editor or edit the source directly. But as I began to program in PHP it lost its usefullness more and more. First there was no way to use the standard '<?php' '?>' delimiters without FrontPage trying to invoke its auto-correcting mechanism on the files I edited. It would try to replace and encode certain characters when I would try to use certain HTML tags. Very annoying. Then I realized that I could use the <script language="php"> style delimiters, which corrected the problem. FrontPage also by default didn't want to handle PHP files, I had to open the (Options->Configure Editors) panel and specifically tell it to recognize and open .php files.

The downfalls: No syntax highlighting. No <?php delimiters.
Useful for finding hexidecimal or RGB values.
Overall an 'ok' solution, but not the best.

[u]Crimson Editor:</u>
Not long ago I got hooked up with a FreeWare text editor via a suggestion from someone here on the p2p forums. Its called Crimson Editor. Wow, talk about a night a day difference.

http://www.crimsoneditor.com/

All syntax is neatly highlighted, brackets, parenthesis, braces are all highlighted when selected making bug tracking much easier.

And other features you would expect in a good text editor, numbered lines, a window showing the file structure. The ability to change what syntax is being highlighted, supports a good number of languages and the ability to write your own custom syntax highlighting config. file.

Some of the very cool features that are employed in Crimson Editor is the ability to do regular expression search and string replacement on not only the currently open file, but in all open files. (Search->Replace) Which as luck would have it, all open files are layed out in tabs that span the top of the window. Which if you are like me and completely rebuild your entire architecture the moment you think of a better way of doing things is very nice to have.

The only drawback that I can even find is a very small one. I don't like that I can't drag an open file onto my second monitor, to be able to edit two files at once... I think I'll get by though :)

[u]Common Windows Hot Keys:</u>
I wonder how many of you out there have realized that shift + arrow will control the highlighting of a line (common to most windows applications) combine this with ctrl + shift + arrow, and the highlighter will move through entire blocks of alpha-strings only stopping at spaces (in other windows apps) or at special characters if used within Crimson. Well I only happened across these nifty hotkeys after a couple of years of struggling with trying to do it with a mouse... but what a difference it made!

Or try shift + delete to cut an entire line, which has but one drawback, the contents of the line replace whatever object is currently being stored in the clipboard... to avoid this use ctrl + delete instead.

[u]Windows Hot key summary:</u>
ctrl + c - Copy
ctrl + v - Paste
ctrl + a - Select all text in the active window
shift + arrow - Controlled highlighting
ctrl + shift + arrow - Controlled highlighting, move through entire blocks of strings at a time.
shift + delete - Cut an entire line, placing contents on the clipboard
ctrl + shift + delete - Delete an entire line (without copying contents) after the cursor position
ctrl + backspace - Delete up to the last space / special character
ctrl + delete - Delete forward up to the next space / special character

Also worthy of mention is I gathered many of these hot key combinations from within Crimson Editor, some of them are universal, some have *slightly* different behavior when used in other Windows apps. while others still may have no uses at all in other Windows apps.

If anyone else knows of shortcuts or text editors that make life easier on us programming populous, please share your findings with the community!


: )
Rich


:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::
 
Old September 10th, 2003, 06:00 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is also the fairly ubiquitous HTML-Kit - http://www.chami.com/html-kit/ - which is my preferred choice when using a CRT display. Crimson is ideal for those rare occasions I find myself looking at an LCD display without also looking at Kwrite :), and I'd recommend it to any Windows laptop user, because of it's bright (almost violently bright) use of colour and its big, blocky text. It uses colour to convey a lot of information, however ("page modified, but not saved", for instance), which annoyed the bejesus out of a colourblind colleague of mine - but there may be a way to modify that which I've yet to find.

Dan

Quote:
quote:Originally posted by quesadilla5
 When I started programming I found some very common annoyances in using different text editors. I thought I would share my findings with the community here.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Tool Bar with hot keys venkatraman_gururaj General .NET 0 July 13th, 2006 09:06 AM
Hot Spots - Pop up text 69liz Dreamweaver (all versions) 2 February 14th, 2006 12:43 AM
hot keys in C++ carl.dufresne@sita.aero C++ Programming 3 January 5th, 2006 02:28 AM
Editors For Java Beginneers Rob2000 BOOK: Beginning Java 2 4 March 17th, 2005 06:40 AM
Hot Keys Louisa VB.NET 2002/2003 Basics 6 September 27th, 2004 09:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.