domingo, 22 de mayo de 2011

Agregar colores al programar con php en nano – Online – Platform

Imagen de nano
Mi editor de texto favorito esnano para hacer cambios en la consola deDebian,CentOS yUbuntu Server.
Al estar cambiando algunas lineas de código php quiero que salgan colores de la sintaxis del lenguaje.
El editor nano viene con algunas extensiones y están ubicadas en:
/usr/share/nano/


Escribimos en la consola:
nano /usr/share/nano/php.nanorc


Dentro del archivo pegamos lo siguiente:
syntax "php" "\.php[2345s~]?|\.ctp$"

#html
color yellow "/?[a-z0-9]+"
color yellow ""

#functions
color white "\[a-z_][A-Za-z_]*\("

#vars
color brightred "\$[A-Za-z_]*"
color cyan "-[A-Za-z_]*"
color green "-"

#keywords
color green "\(array|as|class|compact|empty|extends|null|parent)\"
color yellow "\(empty|endforeach|endif|for|foreach|if|return|var)\"
color magenta "\(function)\"
color brightmagenta "\(echo)\"

#operators
color yellow "\s(&&|&=||==|=|\|\|)\s"
color yellow "(=|::)"

#types
color red "(true|false)"
color red "\s[0-9]+\s"

#strings
color red "'([^'\\]*(\\.[^'\\]*)*)'"
color red ""([^"\\]*(\\.[^"\\]*)*)""

#parens/brackets/braces
color magenta "(\(|\))"
color magenta "(\[|\])"
color magenta "(\{|\})"

#quotes
color white "'"
color white """

#comments
color brightblue "^//.*"
color brightblue "\s//.*"
color brightblue start="/\*" end="\*/"

# Trailing whitespace
color ,green "[[:space:+$"

#php tags
color magenta "(\?(php)?|\?)"


Luego guardamos el archivo.
Ahora habilitamos las extensiones en el archivonanorc. Posiblemente que este vacío. Entramos a la consola y escribimos:
nano /etc/nanorc


Pegamos lo siguiente:
include "/usr/share/nano/asm.nanorc"
include "/usr/share/nano/c.nanorc"
include "/usr/share/nano/groff.nanorc"
include "/usr/share/nano/html.nanorc"
include "/usr/share/nano/java.nanorc"
include "/usr/share/nano/man.nanorc"
include "/usr/share/nano/mutt.nanorc"
include "/usr/share/nano/nanorc.nanorc"
include "/usr/share/nano/patch.nanorc"
include "/usr/share/nano/perl.nanorc"
include "/usr/share/nano/php.nanorc"
include "/usr/share/nano/python.nanorc"
include "/usr/share/nano/ruby.nanorc"
include "/usr/share/nano/sh.nanorc"
include "/usr/share/nano/tex.nanorc"


Ahora guardamos el archivo.
Ahora les muestro un ejemplo de un archivo php.
Imagen de ejemplo de color de php en nano
Fuente:Pedro Pablo Fuentes Schuster

mesothelioma veterans cloud computig internet serious business philadelphia mesothelioma lawyer mesothelioma claim online schools for social worker degree inpatient drug rehab florida milwaukee personal injury attorney mesothelioma survival rates accident lawyer houston tx workers compensation lawyer los angeles mesothelioma attorney assistance hipaa hosting providers emergency response plan ppt auto accident attorney sarasota mesothelioma attorneys california structured settlements annuities motorcycle accident lawyer california seattle mesothelioma lawyer selling structured settlement tucson car accident attorney small business phone plan alcohol treatment center florida master of public policy programs mesothelioma lawyer virginia california motorcycle accident lawyer wisconsin mesothelioma attorney electronic health record program virtual call center software reviews dui lawyer scottsdale florida dui lawyers mesothelioma attorneys mesothelioma law firms structured settlement purchasers internet business service lawsuit mesothelioma truck accident attorney los angeles alabama mesothelioma lawyer outbound call center software mesotheliama mesothelioma lawyer louisiana accident attorney orange county asbestos mesothelioma lawsuit healthcare financial management certification mesotheioma buyers of structured settlements injury attorney milwaukee car quotes tumblr structured settlement annuity companies mesothelioma attorney florida california insurance car mesothelioma lawyers new york car accident attorneys in los angeles business credit car houston motorcycle accident lawyer personal injury lawyer attorney mesothelioma lawyer dallas alcoholics rehabilitation mesothelioma lawsuit mesothelioma personal injury lawyers citrix blogs car insuarnce quotes cell cycle regulation ppt caraccidentlawyer car accident lawyers west palm beach structured settlemen mesothelioma cancer center motorcycle accident attorney sacramento online masters degree programs massachusetts quotes car lawyers accidents tucson dui attorney supportpeachtreecom car accident lawyer san bernardino auto insurance corpus christi tx injury lawyers west palm beach asbestos exposure lawyers mesothelioma ct drug rehab center in florida attorney lawyer mesothelioma personal injury lawyers tampa hybrid cloud solution mesothelioma lawyer massachusetts hosted virtual desktop services structured settlement buyer houston mesothelioma attorney mesothelioma suit structured settlement buyout corona auto insurance boca raton personal injury attorney lasvegas criminal defense attorneys ma virtual data room ashely madis salesforce montreal boost mobile corporate office phone number small business administration sba nashville car accident lawyer structured settlement cash out mesothelioma care accident attorney san bernardino sell annuity payment mesothelioma attorney water restoration san diego sell annuity business administration masters houston tx auto insurance motorcycle accident lawyers san diego multicystic mesothelioma find personal injury attorney attorney for injury mesothelioma litigation personal injury lawyers michigan cloud application hosting personal injury lawyer sarasota fl tennessee mesothelioma lawyer auto accident attorney michigan selling my structured settlement selling structured settlements mesothelioma settlements amounts mesothelioma attorney illinois selling annuity new mexico mesothelioma lawyer mesothelioma lawyer asbestos cancer lawsuit jacksonville personal injury attorney personal injury attorney baton rouge business internet san francisco mesothelioma trial attorney sell annuity payments phoenix wrongful death lawyer criminal defense lawyer dallas structured settlements for sale injury lawyer houston tx baltimore mesothelioma attorneys cash for structured settlement cash out structured settlement personal accident attorney car wreck lawyer dallas san diego truck accident attorney raid recovery labs mesothelioma lawsuits settlements mesothelioma lawyer texas car accident lawyers los angeles best criminal lawyer in texas new york mesothelioma law firm washington mesothelioma attorney phoenix car accident lawyer structered settlement masters degree public administration mesothelioma lawyer chicago structured settlement investments georgia truck accident lawyer peruvianconnection co uk personal injury lawyers houston banking offers to open accounts car accident lawyer houston asbestos cancer life expectancy miami dui lawyers accident attorney in los angeles motorcycle accident lawyer los angeles personal injury attorney ocala fl structured settlement sell california mesothelioma attorney splunk rex free tech support software mesothelioma settlement amounts magento dedicated hosting most profitable internet business structured settlement companies state of california car insurance auto accident lawyers california sell structured settlement selling a structured settlement mesothelioma claims mesothelioma cases purchase annuities virtual dataroom motorcycle accident lawyer san diego business telephone service providers by zip code dual diagnosis treatment centers in florida dui lawyer arizona buying an annuity calculator public service telephone company structured settlement quote cash out annuity can i sell my annuity semi truck accident lawyers auto accident attorney Torrance structured settlement buyers mesothelioma legal information national structured settlement trade association trader car insurance mesothelioma lawyers san diego structured settlement funding buying structured settlements motorcycle accident attorney chicago earthlink business internet skype push to talk cloud computin firm law mesothelioma meso lawyer personal injury attorney clearwater residential treatment centers florida michigan injury lawyer best business telephone service epithelioid mesothelioma online school in indiana car accident lawyer michigan fort lauderdale criminal defense lawyer mesothelioma fund mesothelioma attorney dallas toledo phone company mesothelioma settlements dallas accident lawyer accident attorneys orange county personal injury accident lawyer business email web hosting purchase structured settlements voice phone system integrated management log what is a business license number american telecom solutions auto accident lawyer denver business telephone service provider mesothelioma attorney california virtual data room review ips plumbing motorcycle accident injury lawyer structured settlement company plumbing company denver auto accident lawyer san francisco mesotheolima colorado springs accident attorney los angeles motorcycle accident lawyer west palm beach criminal lawyer broward county dui lawyer plumbing inspection Los Angeles new jersey medical malpractice lawyer personal injury lawyer in chicago personal injury firm how to diagnose mesothelioma alcohol rehab center in florida city college in miami personal injury lawyer west palm beach best accident attorneys auto accident lawyer miami cloud infrastructure as a service a structured settlement mesothelioma charities annuity payment sell settlement citrix xendesktop price jg wentworth rip off car accident lawyer denver hughes net business mesothelioma help offshore accident lawyer az dui lawyer auto accident lawyer in maryland motorcycle accident lawyer san francisco diagnosed with mesothelioma business phone service orlando structured settlement attorneys best mesothelioma lawyers truck wreck lawyer doctorate of nursing programs buy structured settlements buyer of structured settlement annuity cloudservice structured settlement need cash now brooks auto insurance wellsfargo mortgage customer service top business apps for iphone structured settlement advance fast cash for house maritime lawyer houston maryland mesothelioma lawyers highest yield online savings business voice mail service personal injury attorny dui lawyer phoenix car accident lawyer louisville florida automobile insurance company auto accident lawyers in houston tx verizon wireless business phone workers compensation attorney atlanta ga injury attorney baton rouge probability of dying in a car accident workplace accident attorney car accident attorney colorado springs illinois mesothelioma lawyer truck accident attorney texas auto insurance cost by state florida car insurance company accident lawyers in los angeles keller williams insurance best savings accounts online atlanta truck accident attorney customer relationship management web based mesothelioma compensation colorado mesothelioma lawyers mesothelioma lawsuits internet provider business plan car accident lawyers san diego cash for structured settlements alcohol rehabilitation florida phone and internet service for business online school business management integrated ehr average mesothelioma settlement mesothelioma law suit michigan motorcycle accident lawyer buy my structured settlement sell your structured settlement payments denver car accident lawyer cash for my structured settlement open paas online insurance quote comparison las vegas injury lawyer utah mesothelioma lawyer colorado auto accident attorney sell my structured settlement car accident law firms brooklyn accident lawyer car accident attorney in dallas structured settlement cash now austin criminal lawyer dallas mesothelioma lawyer arizona auto accident attorney i have a structured settlement and i need cash saip insurance all about mesothelioma ak auto insurance dui attorney miami hosted predictive dialers business internet houston car crash attorneys auto accidents attorney auto accident attorney denver co structured settlement agreement sell my annuity mesothelioma law suits mesothelioma navy veterans cloud identity and access management liability insurance quote online mobile business phone orange county accident attorney personal injury attorney springfield mo accident defense attorney structured settlement blog mesothelioma lawyer san diego rehabilitation associates fairfield ct austin texas personal injury attorney compare small business phone systems selling annuity payments for cash hard drive raid recovery verizon sip boulder personal injury lawyers virtual data room pricing bus accident attorneys best internet service for business mesothelioma lawyer california cheaper insurance companies asterisk call center software mesothelioma drug structured settlements companies mesothelioma attorney directory business long distance phone jones act attorney las vegas car accident lawyer plueral mesothelioma best structured settlement companies auto insurance yuba city ca bus accident attorney los angeles truck accident attorney atlanta ga structured settlement broker personal injury attorney torrance arizona injury lawyer san francisco motorcycle accident lawyer lump sum annuity motorcycle lawyer los angeles e insurance auto quote best dui lawyer in phoenix sell annuities structure settlements mesothelioma lawyers companies that buy structured settlements highlander the final dimension workers compensation attorney Riverside free online car quotes las vegas personal injury lawyer dallas mesothelioma attorneys la personal injury lawyer car accident lawyer in san diego bowne virtual data room what is structured settlement arizona car accident lawyer mesothelioma lawyer houston accident attorney fort lauderdale dui attorney tempe az

accident attorney florida american telecom solutions brooklyn accident lawyer houston mesothelioma attorney structured settlement buyers mesothelioma claim philadelphia mesothelioma lawyer verizon sip master in healthcare administration online mesothelioma law suits small business administration sba los angeles auto accident attorneys arizona auto accident attorney car accident lawyers los angeles personal injury lawyer denver co masters degree in human resource management selling annuity payments most profitable internet business mesothelioma care mesothelioma survival rates average mesothelioma settlement asbestos exposure lawyers can i sell my annuity criminal defense lawyer pittsburgh mesothelioma attorneys california business telephone providers in my area plumbing inspection Los Angeles drug rehabilitation centers in florida internet serious business dallas mesothelioma attorneys accident attorney san bernardino structured settlement companies alabama mesothelioma lawyer orange county car accident lawyer truck accident attorney texas injury lawyer houston tx structured settlement annuity companies keller williams insurance wisconsin mesothelioma attorney car insurance seattle washington florida automobile insurance company business class internet virtual data room structured settlement payments sell an annuity business internet phones denver car accident lawyers structured settlements annuities business internet san francisco dui attorney tempe personal injury attorney memphis accident lawyer orange county easy business intelligence nist cloud security structured settlement purchasers mesothelioma lawyer virginia magento dedicated hosting mesothelioma suit selling my structured settlement baltimore mesothelioma attorneys rehabilitation associates fairfield ct ehr inc toledo phone company wellsfargo mortgage customer service internet fax telus california car accident attorney sell my structured settlement earthlink business internet motorcycle accident lawyer denver structered settlement structured settlement buyer personal injury lawyer miami meso lawyer liability insurance quote online phoenix car accident lawyer mesothelioma settlements mesothelioma lawyer chicago motorcycle accident lawyer san francisco accident attorney in los angeles best personal injury lawyer dallas mesothelioma law firms auto insurance yuba city ca selling annuity payments for cash hard drive raid recovery nyc mesothelioma lawyer milwaukee personal injury lawyers wireless technology in business car accident attorney tampa selling annuity sell annuity network coverage comparison internet business service business phone line and internet structured settlement investments openstack private cloud nv auto lawsuit mesothelioma jg went san antonio car accident lawyer car wreck lawyer dallas hosted call center firm law mesothelioma car accident lawyer st petersburg fl mesotheolima orlando truck accident attorney dui lawyer phoenix buisness internet car accident lawyer phoenix houston tx auto insurance integrated ehr business phone service orlando mesotheliama clous computing austin car wreck attorney city college in miami jones act attorney seattle mesothelioma lawyer personal injury firm car accident lawyer denver houston mesothelioma lawyers coupon code hostgator mesothelioma attorney illinois mesothelioma trial attorney sell your structured settlement payments personal injury lawyers sarasota los angeles workers compensation lawyers personal injury lawyer in chicago cloud tecnology auto accident law firms drain cleaning in denver mesothelioma attorney massachusetts miami dui lawyers drugrehabsorg define structured settlement illinois mesothelioma lawyer jg wentworth commercial lyrics auto accident lawyer san francisco car accident lawyer michigan mesothelioma lawyer texas auto accident lawyers in houston tx car accident law firms trader car insurance auto accidents attorney houston motorcycle accident lawyer cloud identity and access management social work degree on line php web application development hipaa hosting providers cloud computin mesotheioma mesothelioma lawyer dallas caraccidentlawyer phoenix wrongful death lawyer structured settlemen hughes net business west palm beach criminal lawyer bluehost vs ipage asbestos mesothelioma lawsuit how to sell structured settlement austin tx auto insurance personal injury lawyers fort lauderdale factoring accounts receivable tax treatment mesothelioma law suit new voip phone service business by phone colorado auto accident attorney mesothelioma lawyer louisiana information about car insurance auto insurance cost by state privatecloud business phone and internet providers structured settlement sell california mesothelioma attorney new york mesothelioma law firm supportpeachtreecom injury attorney baton rouge florida drug and alcohol treatment structured settlement agreement accident attorneys orange county business telephone service provider accident and injury lawyer mesotheleoma diagnosed with mesothelioma best business phone and broadband deals cash out structured settlement mesothelioma lawsuit motorola business online telco solutions call centers software mesothelioma attorney directory fast cash for house drug rehab facilities in florida american securities opportunities fund auto accident attorney Torrance injury lawyers west palm beach truck accident attorney los angeles causes of mesothelioma florida car accident attorney mesothelioma cases salt lake city personal injury lawyers car accident attorneys los angeles mesothelioma litigation emergency response plan ppt compare small business phone systems download free virtual machine business class phone mesothelioma help online savings accounts high interest scalable cloud hosting personal injury lawyer boca raton fl avaya phones system dui attorneys orange county structured settlement quote semi truck accident lawyers accident attorney orange county delaware mesothelioma lawyer pharmacist jobs in chicago houston truck accident lawyer personal injury attorney springfield mo splunk rex mesothelioma settlements amounts motorcycle accident attorney sacramento atlanta car accident attorney selling a structured settlement mesothelioma lawyer asbestos cancer lawsuit mesothelioma lawyers san diego buying structured settlements mesothelioma attorney assistance mesothelioma specialists accident lawyers in los angeles las vegas car accident lawyer tennessee mesothelioma lawyer how do create a website mesothelioma drug car accident lawyer nashville coverdell education savings account calculator virtual data room review onine backup tucson car accident attorney costa mesa dui lawyer colorado car accident attorney plumber richardson tx mesothelioma law firm dui austin personal injury accident lawyer paychex naperville define welfare virtual host server car accident lawyers in los angeles new mexico mesothelioma lawyer structured settlment personal injury attorney ocala fl voice phone system motorcycle accident lawyer san diego purchase structured settlements hybrid cloud solution predictive dailer motorcycle accident attorney los angeles mesothelioma attorneys structured settlement company car crash attorneys san francisco motorcycle accident lawyer los angeles motorcycle accident lawyer best structured settlement companies mesothelioma attorney florida motorcycle lawyer los angeles start web design business broward county dui lawyer georgia truck accident lawyer dui lawyer arizona car accident attorney baton rouge utah mesothelioma lawyer state of california car insurance offshore injury attorney irvine car accident lawyer best accident attorneys mesothelioma ct california motorcycle accident lawyer newport beach personal injury attorney benign cystic mesothelioma washington mesothelioma attorney south florida detox center best mesothelioma lawyers car insurance quick motorcycle accident attorney chicago structured settlement need cash now free electronic medical records software download mesothelioma settlement amounts who bought brinks home security maritime lawyer houston car accident lawyer in san diego personal accident attorney alcohol rehab center in florida auto insurance grand junction mesothelioma attorney california personal injury attorny houston maritime lawyers mesothelioma personal injury lawyers business voice mail service offshore accident lawyer buy structured settlements selling structured settlement workplace accident attorney attorney lawyer mesothelioma mesothelioma attorney top small business phone systems sacramento car accident lawyer personal injury lawyer sarasota fl florida car insurance company structured settlement cash out auto accident attorney denver co mesothelioma compensation colorado mesothelioma lawyers mesothelioma lawsuits cell cycle regulation ppt mesothelioma claims structured settlement broker hartford car accident lawyer lost car insurance card motorcycle accident lawyer california cloud call center software personal injury lawyers michigan companies that buy annuities personal injury lawyer bronx sell annuity for cash denver car accident attorney pittsburgh auto insurance sacramento car accident attorney auto insurance in riverside ca dallas mesothelioma lawyer personal injury attorney boca raton orange county accident attorney cash out annuity longdistance telephone providers jacksonville personal injury attorney hosted predictive dialers free online car quotes boca raton personal injury attorney masters degree public administration dui lawyer scottsdale structured settlement purchaser best pbx phone system for small business injury lawyer virginia sports management degree programs business email web hosting buyer of structured settlement annuity annuity payment quotes car michigan motorcycle accident lawyer

Share:

Popular Posts

Recent Posts

Blog Archive

Con la tecnología de Blogger.