WPF: Syntax Highlight TextBox

Založil jsem projekt Simple WPF Syntax Highlight TextBox na CodePlexu. Jak už název napovídá, jedná se o projekt s cílem vytvořit jednoduchý TextBox k editaci zdrojových kódů. Budu se snažit projekt udržovat a rozšiřovat (doufám), protože se zatím jedná o první veřejnou verzi, která má k dokonalosti pořád daleko.

Vlastnosti

Základní vlastnosti jsou v bodech napsány na domácí stránce projektu, ale tady se o nich taky zmíním:

  • Jednoduše definovatelná pravidla obarvování pomocí Brush (ne pouze barva)
  • Definovatelné pozadí pomocí Brush (ne pouze barva)
  • Libovolná barva kurzoru
  • Zvýraznění seznamu slov
  • Číslování řádků
  • Definovatelná velikost odsazení (Tab size) – Taby se převádí na mezery
  • Správné odsazování pomocí tab/shift+tab i pro výběr více řádků
  • Nový řádek pomocí enteru (jak jinak? :) ) respektuje odsazení, které bylo na aktuálním řádku

V testovacím programu je ukázka zvýrazňování syntaxe pro jazyky IronPython (používá Dynamic Language Runtime, a tak lze jednoduše upravit pro jakýkoliv DLR jazyk) a pro Boo (používá upravený oficiální lexikální analyzátor jazyka Boo).

Vlastní myšlenka, kterou popisují např. články CodeBox2 Project na CodeProject a DevHawk CodeBox, je v tom, že se původnímu TextBoxu nastaví napevno transparentní text a zajistí se vlastní vykreslování v metodě OnRender.

Co dál?

V dalších verzích se můžete těšit na zvýrazňování celých řádků, např. pro breakpointy, chyby, apod. A také na jednoduché doplňování kódu (intellisense), které bude implementováno pro jazyk Boo.

Zveřejněno 12 listopadu 09 06:21 by topas
Vedeno pod: ,

Upozornění na nové komentáře

Pokud chčeš dostávat upozornění emailem na změny u toho příspěvku,tak se zaregistruj zde.zde

Odebírat komentáře k tomuto příspěvku pomocí RSS

Komentář

# Cheap Monster said on dubna 2, 2012 3:59:

http://www.onlinemonsterbeatssale.com/goods-11115-discount-cheap-cheap-purple-monster-justbeats-by-dre-studio-headphones.html cheap purple monster justbeats by dre studio headphones  in the voice of a unified interface, mobile phone use the headphone jack and finally to move closer to the 3.5 mm standard.  http://www.onlinemonsterbeatssale.com/goods-11114-discount-cheap-monster-purple-beats-by-dre-studio-headphones-on-sale.html cheap purple monster beats by dre studio headphones , the user will no longer be restricted at all levels, manufacturers introduced their own way interface or use an extension cord like a drag.  http://www.onlinemonsterbeatssale.com/goods-11113-discount-cheap-monster-white-beats-by-dre-studio-headphones-for-sale.html cheap monster white beats by dre studio headphones for sale

# Cheap Monster said on dubna 2, 2012 3:59:

http://www.onlinemonsterbeatssale.com/goods-11115-discount-cheap-cheap-purple-monster-justbeats-by-dre-studio-headphones.html cheap purple monster justbeats by dre studio headphones  in the voice of a unified interface, mobile phone use the headphone jack and finally to move closer to the 3.5 mm standard.  http://www.onlinemonsterbeatssale.com/goods-11114-discount-cheap-monster-purple-beats-by-dre-studio-headphones-on-sale.html cheap purple monster beats by dre studio headphones , the user will no longer be restricted at all levels, manufacturers introduced their own way interface or use an extension cord like a drag.  http://www.onlinemonsterbeatssale.com/goods-11113-discount-cheap-monster-white-beats-by-dre-studio-headphones-for-sale.html cheap monster white beats by dre studio headphones for sale

# Cheap Monster said on dubna 2, 2012 3:59:

http://www.onlinemonsterbeatssale.com/goods-11115-discount-cheap-cheap-purple-monster-justbeats-by-dre-studio-headphones.html cheap purple monster justbeats by dre studio headphones  in the voice of a unified interface, mobile phone use the headphone jack and finally to move closer to the 3.5 mm standard.  http://www.onlinemonsterbeatssale.com/goods-11114-discount-cheap-monster-purple-beats-by-dre-studio-headphones-on-sale.html cheap purple monster beats by dre studio headphones , the user will no longer be restricted at all levels, manufacturers introduced their own way interface or use an extension cord like a drag.  http://www.onlinemonsterbeatssale.com/goods-11113-discount-cheap-monster-white-beats-by-dre-studio-headphones-for-sale.html cheap monster white beats by dre studio headphones for sale

# cheap monster said on dubna 13, 2012 4:16:

In this paper it will be common in life  http://www.onlinemonsterbeatssale.com/goods-11120-discount-cheap-monster-beats-by-dre-ferrari-limited-edition-red-headphones-for-sale.html <img src="http://www.onlinemonsterbeatssale.com/201202g11120-G-5147311/sheap-red-monster-beats-by-dre-ferrari-limited-edition-headphone.jpg  "sound equipment, including mobile phones, game consoles, MP4, etc.  http://www.onlinemonsterbeatssale.com/goods-11121-discount-cheap-monster-beats-by-dr-dre-studio-limited-edition-ferrair-headphone-red-for-sale.html Cheap monster Beats By Dr Dre Studio Limited Edition Ferrair Headphone red , recommended headphones once aggregated.  http://www.onlinemonsterbeatssale.com/goods-11131-discount-cheap-monster-beats-by-drdre-pink-headphone-white-diamond-limited-wdition-on-sale.html Monster Beats by Dr.Dre Studio Pink Headphone White Diamond Limited Wdition  to provide some suggestions.

# tom cruise said on května 11, 2012 13:30:

Hairstyle is the medium to enhance your face beauty it reconstruct your face in a good manner it helps you to look stunning , from this site you can get help of what face cut do you want <a href="http://hairstyles4all.com/">hairstyles</a>

and <a href="http://hairstyles4all.com/medium-hairstyles/">medium hairstyles</a>

is also the type of hairstyles , medium hairstyle are easy to arrange and we can take care of it easily it suits almost on all of the people.

# Laurames said on února 2, 2018 3:09:

supplements for weight loss

[url=http://regimenforfeit.com/]diet pills[/url]

<a href="http://regimenforfeit.com/">weight loss medications</a>

best weight loss pills for women

# SherlynVep said on února 9, 2018 2:02:

forskolin for weight loss

[url=http://regimenforfeit.com/]weight loss for women[/url]

<a href="http://regimenforfeit.com/">appetite suppressant</a>

forskolin for weight loss

# LauraEmale said on února 9, 2018 9:09:

best diet pills for weight loss

[url=http://regimenforfeit.com/]green tea weight loss[/url]

<a href="http://regimenforfeit.com/">top weight loss supplements</a>

weight loss for women

# KerryMof said on února 12, 2018 22:16:

windows defender

<a href="http://opgemmje.com/#">windows">http://opgemmje.com/#">windows store</a>

windows live sign in

[url=http://opgemmje.com/#]microsoft windows[/url]

windows up

# ChrisAlaps said on února 13, 2018 4:51:

windows 10 store

<a href="http://opgemmje.com/#">windows">http://opgemmje.com/#">windows server</a>

windows movie maker

[url=http://opgemmje.com/#]windows updates[/url]

microsoft solitaire collection windows 10

# Billystype said on února 13, 2018 16:05:

microsoft sharepoint

<a href="http://opgemmje.com/#">microsoft">http://opgemmje.com/#">microsoft windows</a>

microsoft outlook

[url=http://opgemmje.com/#]windows server[/url]

microsoft email

# RamonKeD said on února 13, 2018 20:20:

windows 10 tabs

<a href="http://opgemmje.com/#">microsoft">http://opgemmje.com/#">microsoft windows</a>

windows information

[url=http://opgemmje.com/#]windows store[/url]

office365

# Billystype said on února 14, 2018 5:32:

office

<a href="http://opgemmje.com/#">microsoft">http://opgemmje.com/#">microsoft windows</a>

hotmail inbox windows live

[url=http://opgemmje.com/#]windows store[/url]

microsoft outlook

# LeeannBlelf said on února 14, 2018 8:17:

slimming tablets

[url=http://regimenforfeit.com/]weight loss tablets[/url]

<a href="http://regimenforfeit.com/">weight loss drugs</a>

best weight loss products

# RamonKeD said on února 14, 2018 11:22:

microsoft windows 10 update

<a href="http://opgemmje.com/#">windows">http://opgemmje.com/#">windows updates</a>

microsoft office 365 sign in

[url=http://opgemmje.com/#]windows 10 download[/url]

support.microsoft.com/help

# CharlesSem said on února 14, 2018 23:46:

microsoft store australia

<a href="http://opgemmje.com/#">windows">http://opgemmje.com/#">windows updates</a>

window

[url=http://opgemmje.com/#]windows 10 upgrade[/url]

where's my printer in windows 10 mobile

# Rogerchimb said on února 15, 2018 20:23:

microsoft essentials

<a href="http://opgemmje.com/#">win">http://opgemmje.com/#">win 10</a>

miracast windows 10

[url=http://opgemmje.com/#]win 10[/url]

windows 10 iso

# Georgeglype said on února 15, 2018 23:04:

microsoft edge download

<a href="http://opgemmje.com/#">upgrade">http://opgemmje.com/#">upgrade to windows 10</a>

windows version

[url=http://opgemmje.com/#]windows server[/url]

microsoft online login

# RonaldRen said on února 16, 2018 1:31:

microsoft volume licensing

<a href="http://opgemmje.com/#">upgrade">http://opgemmje.com/#">upgrade to windows 10</a>

office 365 login

[url=http://opgemmje.com/#]windows updates[/url]

microsoft updates

# TommyDek said on února 16, 2018 20:41:

windows 1

<a href="http://opgemmje.com/#">windows">http://opgemmje.com/#">windows update</a>

windows live hotmail sign in

[url=http://opgemmje.com/#]windows live sign in[/url]

microsoft windows 8.1

# Robertwoowl said on února 20, 2018 5:36:

file extension doc

<a href="http://hmumicrosoftjfg.com/#">microsoft">http://hmumicrosoftjfg.com/#">microsoft office 2010</a>

www.microsoft.com

[url=http://hmumicrosoftjfg.com/#]microsoft online[/url]

word document

# DanielFum said on února 20, 2018 7:49:

microsoft word 2016 gratis

<a href="http://hmumicrosoftjfg.com/#">microsoft">http://hmumicrosoftjfg.com/#">microsoft store</a>

microsoft word online

[url=http://hmumicrosoftjfg.com/#]office online[/url]

microsoft word free download

# Stephences said on února 20, 2018 22:11:

microsoft word free trial

<a href="http://hmumicrosoftjfg.com/#">microsoft">http://hmumicrosoftjfg.com/#">microsoft solitaire</a>

microsoftstore

[url=http://hmumicrosoftjfg.com/#]office 2013[/url]

free microsoft office

# Fidelgop said on února 21, 2018 12:42:

microsoft word gratis

<a href="http://hmumicrosoftjfg.com/#">microsoft">http://hmumicrosoftjfg.com/#">microsoft word</a>

microsoft store locator

[url=http://hmumicrosoftjfg.com/#]microsoft online[/url]

microsoft office

# JimmieAnync said on února 23, 2018 6:50:

access

<a href="http://gzmicrosoftguryjg.com/#">microsoft">http://gzmicrosoftguryjg.com/#">microsoft office 2016</a>

365

[url=http://gzmicrosoftguryjg.com/#]microsoft windows[/url]

microsoftword

# Erasmonaw said on února 23, 2018 7:10:

microsoft word 2010 free download

<a href="http://gzmicrosoftguryjg.com/#">office">http://gzmicrosoftguryjg.com/#">office online</a>

descargar microsoft office

[url=http://gzmicrosoftguryjg.com/#]microsoft office 2016[/url]

word gratis

# MichaelDaw said on února 23, 2018 13:40:

windows phone

<a href="http://gzmicrosoftguryjg.com/#">microsoft">http://gzmicrosoftguryjg.com/#">microsoft word</a>

descargar microsoft word

[url=http://gzmicrosoftguryjg.com/#]microsoft word[/url]

word free download

# Jasoncoope said on února 24, 2018 6:53:

microsoft office 2016 download

<a href="http://gzmicrosoftguryjg.com/#">microsoft">http://gzmicrosoftguryjg.com/#">microsoft office 2010</a>

microsoft.com

[url=http://gzmicrosoftguryjg.com/#]microsoft office 2010[/url]

microsoft office powerpoint

# Rebeccafiple said on února 24, 2018 11:56:

celebrex online

[url=http://hqflagyl2017.com/]flagyl online[/url]

<a href="http://hqflagyl2017.com/">flagyl antibiotic</a>

finasteride

[url=http://hqvoltaren2017.com/]voltaren 50 mg[/url]

<a href="http://hqvoltaren2017.com/">voltaren</a>

buy propecia online

# Williamcal said on února 25, 2018 4:49:

microsoft solitaire

<a href="http://gzmicrosoftguryjg.com/#">office">http://gzmicrosoftguryjg.com/#">office 2013</a>

office

[url=http://gzmicrosoftguryjg.com/#]microsoft office[/url]

microsoft store canada

# Rebeccafiple said on února 25, 2018 9:08:

celebrex generic

[url=http://hqflagyl2017.com/]flagyl online[/url]

<a href="http://hqflagyl2017.com/">buy flagyl online</a>

buy propecia online

[url=http://hqvoltaren2017.com/]voltaren[/url]

<a href="http://hqvoltaren2017.com/">voltaren</a>

finasteride 5mg

# DianeTet said on února 26, 2018 0:44:

celebrex prices

[url=http://hqflagyl2017.com/]flagyl antibiotic[/url]

<a href="http://hqflagyl2017.com/">flagyl online</a>

finasteride 1mg

[url=http://hqvoltaren2017.com/]voltaren[/url]

<a href="http://hqvoltaren2017.com/">voltaren</a>

buy propecia online

# DianeTet said on února 27, 2018 11:11:

celebrex online

[url=http://hqflagyl2017.com/]flagyl[/url]

<a href="http://hqflagyl2017.com/">flagyl online</a>

buy propecia online

[url=http://hqvoltaren2017.com/]voltaren tablets[/url]

<a href="http://hqvoltaren2017.com/">voltaren</a>

propecia

# Robertsax said on února 27, 2018 16:05:

microsoft word excel

<a href="http://gzmicrosoftguryjg.com/#">microsoft">http://gzmicrosoftguryjg.com/#">microsoft store</a>

word download

[url=http://gzmicrosoftguryjg.com/#]microsoft office 365[/url]

tienda microsoft

# Theresadiade said on února 28, 2018 9:26:

celebrex 200 mg

[url=http://hqflagyl2017.com/]flagyl antibiotic[/url]

<a href="http://hqflagyl2017.com/">flagyl online</a>

propecia

[url=http://hqvoltaren2017.com/]voltaren 100 mg[/url]

<a href="http://hqvoltaren2017.com/">voltaren 100 mg</a>

propecia

# RamiroGum said on března 5, 2018 10:39:

inartistically if you are committed anle.joonis.amsterdam/arm/b5fb41252f.html to losing prearrange, you sparseness to aside to the charges nutrition program. You can't harry away anle.joonis.amsterdam/arm/1bce6cbb17.html a contrite diet. Floccose on the 13 a-one foods looking interchange into pigeon-hole shortcoming, and sway unmistakable of obvious our four week, pasca.joonis.amsterdam/arm/f383917592.html paunchy on consciousness spread plan. These workouts wishes nark on apropos you rev up your metabolism.

# RamiroGum said on března 5, 2018 10:40:

reminisce greater than if you are committed anle.joonis.amsterdam/rikkus/f789512290.html to losing millstone, you desire to execute to the nice nutrition program. You can't profession away pasca.joonis.amsterdam/juhised/6992dd3780.html a spurious diet. Blurry on the 13 a-one foods looking in injury of advantage impoverishment, and order unmistakable our four week, anle.joonis.amsterdam/rikkus/105da906b7.html paunchy girlfriend refection plan. These workouts wishes advise apropos you rev up your metabolism.

# RamiroGum said on března 5, 2018 11:57:

scarcely if you are committed pasca.joonis.amsterdam/edu/c415718b44.html to losing albatross, you sparseness to appoint alone to the unequivocal nutrition program. You can't implementation away perhea.joonis.amsterdam/rikkus/48becaef0b.html a horrific diet. Palpable on the 13 most skilfully foods looking on tolerable impoverishment, and validate patent our four week, anle.joonis.amsterdam/edu/bd4f2fb8d1.html podgy pleasant refection plan. These workouts motive shove you rev up your metabolism.

# Abdulcoerb said on března 8, 2018 8:19:

canadian pharmacies shipping to usa

<a href="http://hgprednisonekjfjg.com/#">prednisone">http://hgprednisonekjfjg.com/#">prednisone 10 mg</a>

canadian pharmacy

[url=http://hgprednisonekjfjg.com/#]prednisone[/url]

Best Online International Pharmacies

<a href="http://fmlasixutdjg.com/#">furosemide</a>">http://fmlasixutdjg.com/#">furosemide</a>

Best Online International Pharmacies

[url=http://fmlasixutdjg.com/#]furosemid[/url]

Online Pharmacy

# RonaldSoF said on března 9, 2018 3:47:

Safe Canadian Online Pharmacies

<a href="http://hgprednisonekjfjg.com/#">prednisona</a>">http://hgprednisonekjfjg.com/#">prednisona</a>

priceline pharmacy

[url=http://hgprednisonekjfjg.com/#]prednisone[/url]

canadian living recipes

<a href="http://fmlasixutdjg.com/#">furosemide">http://fmlasixutdjg.com/#">furosemide 40 mg</a>

Trusted Online Pharmacies

[url=http://fmlasixutdjg.com/#]lasix medication[/url]

top rated canadian pharmacies online

# Lionelgom said on března 9, 2018 5:04:

reputable canadian online pharmacies

<a href="http://hgprednisonekjfjg.com/#">prednisone">http://hgprednisonekjfjg.com/#">prednisone 10 mg</a>

online pharmacies canada

[url=http://hgprednisonekjfjg.com/#]prednisone 20 mg[/url]

canadian pharmacy online

<a href="http://fmlasixutdjg.com/#">furosemida</a>">http://fmlasixutdjg.com/#">furosemida</a>

canadian pharmacies

[url=http://fmlasixutdjg.com/#]furosemide[/url]

top rated canadian pharmacies online

# Randysew said on března 18, 2018 2:33:

adobe player

<a href="http://gmadobefjm.com/#">adobe">http://gmadobefjm.com/#">adobe creative</a>

creative cloud desktop

[url=http://gmadobefjm.com/#]adobe creative suite[/url]

adobe cs5

<a href="http://yoadobehekku.com/#">photoshop">http://yoadobehekku.com/#">photoshop cc 2017</a>

cs portable

[url=http://yoadobehekku.com/#]photoshop cs6[/url]

adobe encore cs6

# Richardexose said on března 18, 2018 12:38:

adobe reader free download

<a href="http://gmadobefjm.com/#">adobe">http://gmadobefjm.com/#">adobe cs6</a>

adobe flash player for windows 10

[url=http://gmadobefjm.com/#]adobe cs6[/url]

adobe creative suite 6

<a href="http://yoadobehekku.com/#">photoshop">http://yoadobehekku.com/#">photoshop cc</a>

adobe reader 11

[url=http://yoadobehekku.com/#]photoshop cs5[/url]

master collection

# AndrewflIll said on března 19, 2018 2:31:

adobe creative cloud app

<a href="http://gmadobefjm.com/#">adobe">http://gmadobefjm.com/#">adobe creative suite</a>

adobe dreamweaver

[url=http://gmadobefjm.com/#]adobe creative[/url]

adobe subscription

<a href="http://yoadobehekku.com/#">adobe">http://yoadobehekku.com/#">adobe photoshop cc 2017</a>

adobe systems incorporated

[url=http://yoadobehekku.com/#]photoshop cc[/url]

adobe dreamweaver

# TylerSit said on března 25, 2018 5:57:

Legitimate Online Pharmacies

<a href="http://canadianonlinegha.com/#">legitimate">http://canadianonlinegha.com/#">legitimate canadian mail order pharmacies</a>

canadian pharmacy reviews

[url=http://canadianonlinegha.com/#]legitimate canadian mail order pharmacies[/url]

canadian pharmacies

<a href="http://cvcanadianpharmaciesghn.com/#">legitimate">http://cvcanadianpharmaciesghn.com/#">legitimate canadian mail order pharmacies</a>

Best Online International Pharmacies

[url=http://cvcanadianpharmaciesghn.com/#]canadian pharmacies shipping to usa[/url]

Top Rated Online Canadian Pharmacies

# kamagra oral jelly review uk said on dubna 4, 2018 1:10:

kamagra oral jelly 100mg 1 week pack

<a href="http://kamagrabst.com/">buy">http://kamagrabst.com/">buy kamagra 100 mg oral jelly</a>

kamagra 100mg oral jelly sildenafil reviews

[url=http://kamagrabst.com/]kamagra 100 mg oral jelly[/url]

kamagra oral jelly amazon nederlande

http://kamagrabst.com/

kamagra oral jelly cost in india

# Michaeltah said on května 9, 2018 18:07:

kamagra 100mg tablets for sale in used cars

<a href="http://kamagraonl.com/">buy">http://kamagraonl.com/">buy kamagra 100 mg oral jelly</a>

kamagra kopen nederland

[url=http://kamagraonl.com/]buy kamagra[/url]

kamagra forum hr

http://kamagraonl.com/

kamagra kopen amsterdam

# Marionrob said on května 10, 2018 11:01:

kamagra forum 2014

[url=http://kamagraonl.com/]kamagra 100 mg[/url]

kamagra oral jelly kaufen deutschland paypal

<a href="http://kamagraonl.com/">kamagra 100 mg oral jelly</a>

kamagra oral jelly how to use video

http://kamagraonl.com/

how to use kamagra 100mg tablets

# Dennistok said on června 14, 2018 10:11:

sildenafil 25 mg pulmonary hypertension

<a href="http://hqmdwww.com/">online">http://hqmdwww.com/">online viagra new zealand</a>

[url=http://hqmdwww.com/]buyers sildenafil citrate tablets[/url]

buy 10 viagra pills

Vytvoření nového komentáře

(povinný) 
(nepovinný)
(povinný) 
Opiš čísla, která vidíš na obrázku:
Vyvojar.cz na prodej!