
! Warning: once this action has been performed, it cannot be undone ! Normalizing resets the display and editing options for the chosen document to the defaults you set in Preferences. The Normalize Options setting comes in handy when you are working on projects with inconsistent formatting. To enable this option, navigate to Preferences > Editor Defaults and select the Balance While Typing option. This will ensure that all delimiters are balanced. The Balance While Typing option will flash an open brace, bracket, parenthesis, or curled quote when you type the closing one. There is nothing like one missing bracket or curly brace to ruin an afternoon. Measuring the Rein - Balance While TypingĪlthough I don't write much code, every once in a while I am asked to review modules. This will remove quotes from selected text or from the current line if no text is highlighted. To strip Internet-style quotes, navigate to Text > Strip Quotes. Smart or curly quotes are quite stylish, but not all browsers and web services recognize them, so it's better to not include them while writing Drupal documentation. To see invisible characters such as line breaks, tabs, and other invisible characters, navigate to View > Text Display and select Show Invisibles.Īfter this option is in enabled you now have the option to see any spaces within the document as well, navigate to View > Text Display and enable Show Spaces. Speaking of Gremlins, how do you see these pesky characters? TextWrangler can search for:Īfter selecting which characters to search, you have the choice to: To zap Gremlins, navigate to Text > Zap Gremlins. But what if one of the cowgirls is stuck in the 1990s and insists on using Word, or the file someone shared is a PDF, so there are non-web readable characters and maybe some mysterious spacing issues? Zapping these little rascals is a snap with TextWrangler. There are five options:Ĭollaborating can bridge the gap between strategy and execution. To change text case, navigate to Text > Change Case. Text can be changed by highlighting small areas, or all of the page’s text can be changed at once. Change CaseĮvery good text editor provides the functionality to change case and TextWrangler is no different. Subsequently, there is also the option to delete a tab's worth of spaces when Delete is pressed. To change tab settings navigate to Text > Entab and choose your preferred tab width, and the tab will be replaced with spaces rather than a tab character. TextWrangler has the option to replace the tab character with a pre-set number of spaces. Tabs are the nemesis for most programming languages, and that includes documentation standards for Drupal. I don't harness all the power it has to offer as a copywriter or while writing Drupal documentation, but here is a short list of text transformation commands I frequently use. It can wield more power than a bucking bronco. TextWrangler is pretty powerful for a plain text editor. To search and replace through multiple file navigate to Search > Multi-File Search (Command + Shift + F). To do a simple search and replace navigate to Search > Find (Command + F). This ability comes in handy when writing/editing Drupal modules whose names have changed, the name of the module has changed, and this change needs to be reflected in every instance in every one of the module files. TextWrangler will comb through multiple files at once. Most text editors come equipped with search and replace, but the scale of TextWrangler's outshines all others.

If you repeat the command, the clipboards will cycle backward through the history. Selecting Command-Shift-V will replace the current clipboard with the previous one. When writing READMEs, I have my soft wrap set to window width, but have my page guide set at 80 characters, so I can manually add line breaks where I need them.ĭigging in the Spurs - Multiple ClipboardsĬopy and pasting is a copywriter's trusty horse. The following options are available for text wrapping: Navigate to Edit > Text options and select Soft Wrap Text. TextWrangler definitely keeps me from squatting on my spurs, and the best part - it's free! Building the Corral - Text WrappingĪccording to Drupal Documentation for READMEs, text should manually word-wrap at 80 characters. I just need a tool that works on my Mac, writes with no fancy characters, and has the ability to do some basic formatting. Since I don't venture too far off the ranch into programming, I don't really have the need for a heavy IDE (Integrated Development Environment). It's not quite the Wild Wild West, but having a solid text editor in my holster keeps me saddled up and ready to ride. As Hook 42's Community Evangelist, I frequently venture into the prairie of Drupal documentation.
