B+ syntaxHighlighting commands slows down the file loading....
BlitzPlus Forums/BlitzPlus Programming/B+ syntaxHighlighting commands slows down the file loading....| 
 | ||
| syntaxhighlight fully functional : 1300 lines -> 3.1 s syntaxhighlight (full code but ignore textarea formating commands) 1300 lines -> 0.17 s | 
| 
 | ||
| You need to optimize it then... EG, only format the screen you can see. Then when you scroll, update the new lines that appear. | 
| 
 | ||
| But there is not list of eventDATA for textarea. How to detect a scrolling | 
| 
 | ||
| Ive tested eventdata() for textarea and it returns only one value in this case. (=1) There's no eventdata to detect text scrolling | 
| 
 | ||
| Capture the keys and the mouse controls that can cause scrolling and work from there. | 
| 
 | ||
| Or scroll using a slider and capture that event. | 
| 
 | ||
| http://www.blitzbasic.com/codearcs/codearcs.php?code=691 ^ that is fast syntax highlighting. When you load: you copy the file in the copy-memory. Than paste this in the textarea. cu, ST. |