Introduction
Texteditorisakindofcomputersoftware.Mainlyusedtowriteandviewtextfiles.Therearesomespecialtexteditorsthatsupportaddingtheirownformatstoenrichthepresentationformofthedocument.Theoperatingsystemorintegrateddevelopmentenvironmentusuallyhasaneditorthatcanviewandeditplaintext,andthetexteditorthatcanincreasetheformatisusuallyusedbyindividualusersorcompaniesintheproductionoffilesthatrequireaformat.Becauseprogramsandprogramconfigurationfilesareusuallystoredinplaintext,programmersalsoneedtouseaplaintexteditortoeditprogramsandconfigurationfiles.
Texteditorsundercommonsystems
CommononesareNotepadunderWindows,texteditorunderMacOSX,vi,LinuxunderLinuxemacs,gedit,editunderDOS,etc.
Useundereachsystem
1.Windowsstart/run,entertheeditcommandtoenterthetexteditortoeditthetext;youcanalsoentereditundercmdtoenterthetexteditor.Thetexteditorissimilartotheclanguageinterface.Itisaverypracticaltexteditingsoftware.
2.ForMacOSX,findthetexteditor.app(sourcename:TextEdit.app)intheapplicationfolderunderthediskorLaunchpad(MacOSXLion10.7orabove),andopenit.Createanewdocumentandimplementediting.Texteditingsupportsrichtextformat(.rtf),richtextformatwithattachments(.rtfd),(.html),Webarchive(.webarchive),OpenDocumenttext(.odt),Word2007format(.docx),Word2003format(.xml),Word1997format(.doc)andplaintext(.txt)fileproduction,andexportoftheabovefilesinportabledocumentformat(.pdf).ThetexteditorcanopenalmostalldocumentformatscompatiblewithMacOSX.
3.EntertheterminalunderLinux,enterthenameofthetexteditor,andpressEntertorun.
Type
Sometexteditorsareshortandpowerful,andsometexteditorsproviderichandcomplexfunctions.Forexample,bothUnixandUnix-likeoperatingsystemsprovidethevieditor(oritsvariants),butsomeoperatingsystemsalsoprovidetheEmacseditor.Windowssystemprovidesaverysimplenotepad,butmanypeople,especiallythoseprogrammers,preferothereditorswithricherfunctionsunderWindows.IntheclassicMacOSofAppleMacintosh,SimpleTextwasincluded.Later,TextEditreplacedit.Someeditorssupporttwomodesofoperation,bothasatexteditorandasawordprocessor.WordStarisanexample.
Thetexteditorsusedbyprofessionalcomputerusersoftendonotlimitthesizeofopenfiles.Sucheditorsstillstartquicklywheneditinglargefiles,andtheycanalsoeditfilesthatexceedthememorysize.Asimpletexteditorusuallyreadsthefiledirectlyintomemory.Inthisway,thespeedisslowerwhenprocessinglargerfiles,anditsimplycannotbeprocessedforlargerfiles.
Professionalcomputersneedtheabilitytohandlelargefiles.Forexample,systemadministratorsneedtoreadverylonglogfiles;programmersneedtomodifyverylargesourcecodefiles,orcheckunusuallylargefiles,suchasfilesusedtostoreentiredictionaries.
Sometexteditorscontainspecialcomputerlanguages,whichcanbecustomizedusingthislanguage(programmableeditor).Forexample,youcancustomizeEmacswithLispprograms.Usingthismethod,theusercanusuallysimulatetheshortcutkeycombinationofacertaineditorandsomeotherfeaturesasanothereditor,sothattheuserdoesnotneedtolearnthecommandcombinationofthiseditor.
TherearealsosomeprogrammableeditorsthatuseREXXastheirscriptinglanguage.TheseeditorssupportdirectinputofcommandsorREXXstatementsatthebottomofthescreen.Peopleusuallythinkoftheseeditorsasorthodoxeditors.Inthistypeofeditor,themostrepresentativeisthefollow-upproductofXedit,andXeditisIBM'seditorinVM/CMS.Somevifollow-upproducts,suchasVim,alsosupportfoldingandmacros,andtherearecommandlinesatthebottom.Peoplethinkofthemasanotherkindoforthodoxeditor.
Manytexteditorsusedtodevelopsoftwaresupportsyntaxhighlightingandauto-completionofsourcecode,whichmakestheprogrameasiertoreadandwrite.Theprogrameditorusuallyallowsyoutoselectasubroutineorvariable,thenjumptoitsdefinitionpart,andthenjumpbacktotheoriginalposition.Additionaltoolslikectagsarespecificallyusedtolocatethedefinitionpart.
Withthedevelopmentofcomputernetworks,texteditorsthatcanbeeditedbymultiplepeoplehavebeenborn,suchasNetpadundertheWindowsoperatingsystem,whichallowsmultiplepeopletoeditorreadthesametextfileatthesametime.
Therearealsosomegoodopensourcetexteditors,suchasNotePad++,PSPad,Komodo,Coda,etc.
Typicalfunctions
FindandReplace
Findawordoracharacterstringinatextfile,andreplaceonecharacterstringwithanothercharacterstring.Variousmethodscanbeadopted:globalsearchandreplacement,conditionalsearchandreplacement,andunconditionalsearchandreplacement.
Cut,Copy,Paste
Mosttexteditorssupportcopyingormovingwithinorbetweenfiles.
Texttypesetting
Texteditorsusuallysupportbasictypesettingfunctions,suchasscrolling,automaticindentation,linenumbertypesetting,commenttypesettingandsoon.
Undoandredo
Likewordprocessors,texteditorsalsosupportundoandredo.Usually,especiallyoldtexteditors,onlysupportone-leveleditinghistory,andcanonlyundoorrestoretothelastchange.Modernandcomplextexteditorssupportmulti-leveleditinghistory,sothatitcanbeundoneorrestoredtoanyhistoricalstate.Thenumberofchangesthatcanberecordedvarieswithdifferenteditors,andisusuallyconfigurable.
Import
Readormergethecontentofanothertextfiletothefilecurrentlybeingedited.Sometexteditorssupportinsertingtheoutputofoperatingsystemcommands.
Filtering
Someadvancedtexteditorsallowyoutosendthefileyouareeditingtoanothertoolandreadbackthefilteredresultstothisfile.Forexample,thismethodcansortsomerows,orperformmathematicalcalculations.
History
Aboxofpunchedcardscontainingseveralprograms.
Beforetheadventoftexteditors,peopleusedpunchingmachinestopunchcomputertextonpunchcards.Thetextisstoredinaboxcontainingsuchathincard,whichcanbereadwithacardreader.
Thefirsttexteditorisalineeditor,whichrunsonatypingterminal.Thiseditordoesnothavethefunctionofdisplayinginwindowsandscreens.Itcontainssomeveryshortcommands(inordertoreducetheamountoftyping).Oneofthecommandscanprintoutthespecifiedpartofthefilethroughatypewriter.Theeditcursorisanimaginaryinsertionpoint,whichcanbemovedtothelinewherethespecificcontentstringislocatedthroughspecialcommands.Subsequently,thecontentstringwasexpandedintoregularexpressions.Ifyouwanttoseethechangesinthefile,youneedtoprintitout.Comparedwiththepuncher,peoplethinkthatthisline-basedtexteditorisarevolutionaryadvancement.Withoutit,usersneedtomarkthosecommandsforprocessingtextintospecialcardsandusethesecardswheneditingfiles.
Whencomputerterminalswithdisplayscreensappeared,texteditorsbasedondisplayscreensbecamepopular.Oneoftheearliestfull-screeneditorswascalledO26,whichwasmadein1967fortheoperationconsoleofCDC6000seriesmachines.Anotherearlyfull-screeneditorwasvi.viwasborninthe1970s,anditisstillthestandardeditorforUnixandLinux.Thefull-screeneditorhasplayedaroleinpromotingthesalesofvideoterminals.
Comparison
Thistablecomparesthegeneralinformationofeacheditor:
Attribution | Timeoffirstpublicrelease | Lateststableversion | Price(USD) | ReleaseAgreement | |
GNUEmacs | GNUProject | 1975 | 23.3 | Free | GPL |
nvi | BillJoy | 1976 | 1.79 | Free | BSDlicense |
Notepad | Microsoft | 1985 | 6.0 | BelongingtoWindowssystem | Proprietary |
vim | BramMoolenaar | 1988 | 7.3 | Free | GPL-compatible |
Alphatk | Alpha-developmentcabal | 1990 | 8.0 | $40,shareware | ThekernelisnotopensourceandcontainsBSDcomponents |
XEmacs | LucidInc. | 1991 | 21.0 | Free | GPL |
TextPad | HeliosSoftwareSolutions | 1992 | 4.7.3 | $29 | Sharesoftware |
BBEdit | RichSiegel | April1992 | 8.2.3 | $199;teachinguse$49 | Proprietary |
JOE | JosephAllen | 1992(?) | 3.3 | free | GPL |
Acme | RobPike | 1993 | Releasedwiththe4theditionofPlan9 | Free | LPL(OSIapproved) |
UltraEdit | IDMComputerSolutions | 1994 | 12.00 | $40 | Proprietary |
Zeus | XidiconeP/L | 1995 | 3.95f | $39.95 | Proprietary |
EditPlus | ES-Computing | March20,1998 | 3.20 | $35/person | Proprietary |
jEdit | SlavaPestov | 1998(?) | 4.2 | Free | GPL |
Alphatk | VinceDarley | 1999 | 8.3.3 | $40 | Proprietary,containsBSDcomponents |
Bluefish | BluefishDevTeam | 1999 | 1.0.4 | Free | GPL |
ConTEXT | EdenKirin | 1999 | 0.98.2 | Free | Proprietary |
Nano | GNUProject | 1999 | 2.0.9 | Free | GPL |
gedit | GNUProject | 2000 | 2.16.2 | Free | GPL |
KWrite | KDE | 2000 | 4.5.3 | Free | GPL |
Kate | KDE | December2000 | 3.5.3 | Free | GPL |
PSPad | JanFiala | 2002 | 4.5.2 | Free | Proprietary |
AkelPad | AleksanderShengalts,AlexeyKuznetsovandothercontributors | 2003 | 4.5.4 | Free | BSDlicense | p>
AptEdit | BrotherTechnology | 2003 | 4.8.1 | $44.95 | SpecialYes |
SubEthaEdit | TheCodingMonkeys | 2003year | 2.1.1 | $35commercialuse | Proprietary |
Notepad++ | HouJinwu | November25,2003 | 6.1 | Free | GPL |
ProfessionalNotepad | ATechGroup | 2004 | 2.9 | $18 | Proprietary |
RainbowTextEditor | ChenChi-Shun | November2004 | 3.8 | Free | p>Proprietary |
Notepad2 | FlorianBalmer | April2004 | 4.2.25 | Free | GPL |
MadEdit | madedit | 2006 | 0.2.9 | Free | GPL |
Netpad | OriginallyownedbyNetSoftInc. | 2008 | 1.0.3 | Free | GPL |
CrimsonEditor | IngyuKang | ? | 3.7 | Free | Opensource,usecertificateunknown |
Pico | UniversityofWashington | ? | 4.64 | Free | Proprietary |
NeoeEdit | neoedmund | 2009 | r220 | Free | BSDlicense |
Siphonink | BGLL | 2011 | 2.5.1.0 | Free | Proprietary |
Attribution | Timeoffirstpublicrelease | Lateststableversion | Price(USD) | ReleaseAgreement |