SyntaxHighlightingEditField?

Hello

I’m looking for a class named “SyntaxHighlightingEditField”, I think it’s created by Alex Restrepo. And I think this class is build on it. But custom editfield is way to big for me. I only want syntax highlighting, and that class worked with simple xml files.

But I can’t find it on Alex Restrepo’s GitHub.

Anyone has this class by chance?

Thanks

I’ve uploaded it here
Download

Thanks Mr Schneider, you have no idea how much you’ve helped me!!

Do you have also the problem that it no longer works in XOJO with Cocoa?

I’m not using Xojo, but Realbasic. so I have no answer to that question.

Although, it’s very weird that a thread cannot manipulate an UI element. Maybe someone from Xojo can clear things up?

Yes, with Real Studio 2012 it works.

Someone hasn’t been paying attention:

http://www.xojo.com/blog/en/2013/06/accessing-the-user-interface-from-a-thread.php

Has been discussed to death …

I have a way found to make it work in XOJO.
I removed the HighlighterThread and put the Run Code into the Timer.
It seems to work.

Download SyntaxHighlightEditField2

Thanks Alex. That’s very nice.
The xml files containing the description of the highlight rules follow a generic structure or this is your own development. I mean, is it easy to find other descriptor files (like for Python, etc.) ?

here is a Python def , not perfect but useable, save it as xml in the definitions folder

[quote]<?xml version="1.0" encoding="UTF-8"?>

Python


/\\[
\r]
\/


#
$


‘’’
‘’’


def
\040


import
\040


"
(((?<!\\)(\\\\)
)|^)"



if




tkinter




root




attribute
assert
break
class
continue
class
def
del
elif
except
exec
finally
for
global
if
implements
in
is
lambda
not
or
pass
print
raise
return
try
while
with
yield
true
try
expression
boolean
char
double
final
float
int
long
short
static
void



(?<=[^\w\d]|^)(((([0-9]+\.[0-9])|(\.[0-9]+))([eE][+\-]?[0-9]+)?[fFlL]?)|((([1-9][0-9])|0[0-7]*|(0[xX][0-9a-fA-F]+))(([uU][lL]?)|([lL][uU]?))?))(?=[^\w\d]|$)


(’.’)


([A-Za-z0-9_]+ *)\(


[/quote]

another Version with the Definitions inside the app.

SHEField3.zip

[quote=70304:@Markus Winter]Someone hasn’t been paying attention:

http://www.xojo.com/blog/en/2013/06/accessing-the-user-interface-from-a-thread.php

Has been discussed to death …[/quote]

Whoops, my bad. But I think it’s better this way.