forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDS syntax highlighter for HTML and ExtTEXT output

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements
View previous topic :: View next topic  
Author Message
bornsoft
Contributor
Contributor


Joined: 19 Feb 2009
Posts: 113
Location: Germany

PostPosted: Mon Nov 14, 2011 4:16 am    Post subject: VDS syntax highlighter for HTML and ExtTEXT output Reply with quote

Hi folks,

maybe someone is interested in this little program.

With this you can easily produce VDS syntax highlighted html code.

Useful if you plan to make helpfiles for your DSU for example.

Also you can produce ExtText formatted code for syntax highlighting VDS code.

I'd be glad if you like it.

Cheers.

bornSoft


This is a screenshot from the HTML output in Firefox.



Updated to Version 1.1.1 - 2011/11/17 - 06:30 CET

.



VDS_Highlighter_1_1_1.zip
 Description:
VDS syntax highlighter for HTML and ExtText

Version 1.1.1

Download
 Filename:  VDS_Highlighter_1_1_1.zip
 Filesize:  57.83 KB
 Downloaded:  362 Time(s)



Last edited by bornsoft on Thu Nov 17, 2011 5:29 am; edited 13 times in total
Back to top
View user's profile Send private message Visit poster's website
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Mon Nov 14, 2011 12:46 pm    Post subject: Reply with quote

Neat little app BornSoft.

HTML works great but I get "Runtime error 11 at line 282" when I select extText.

Win7 x64
Back to top
View user's profile Send private message Send e-mail
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Mon Nov 14, 2011 1:12 pm    Post subject: Reply with quote

Tried extText again with a different DSC file and it didn't error but seems to be stuck in a loop.

EDIT: Ok tried again with a small dsc file (100 lines) and extText worked.

I am guessing there must be a size limit for extText.
Back to top
View user's profile Send private message Send e-mail
bornsoft
Contributor
Contributor


Joined: 19 Feb 2009
Posts: 113
Location: Germany

PostPosted: Mon Nov 14, 2011 3:33 pm    Post subject: Reply with quote

Hi Aslan,

thanks for testing. In line 282 the number recognition routine is called, in which I use a private function to extract numbers from a string. Maybe there goes something wrong.

BUT: The programm works in two steps and the first step where all elements to highlight are marked is the same for HTML and ExtText. So if the same *dsc file works for HTML and not for ExtText it must be something else.

If possible could you please narrow the problematic code to a smaller size and PM it to me? This woud help a lot.

Thanks.

bornSoft


EDIT: File updated. I had to limit the ExtText output preview to 20kB. It seems that the ExtText element buffers its content and reads it in chunks. This makes the application window hang. The output in the editor is not cutted.

.
Back to top
View user's profile Send private message Visit poster's website
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Tue Nov 15, 2011 4:13 am    Post subject: Reply with quote

BornSoft, there is a PM on this waiting for you with an attached script that is having issues with ExtText but works great with HTML.

Hope it helps. I really like the app Wink
Back to top
View user's profile Send private message Send e-mail
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Tue Nov 15, 2011 4:19 am    Post subject: Reply with quote

Whups!! I should have read ALL of your post before sending you the PM. Must be my ADHD Rolling Eyes

I got the updated version and it works just fine.
Back to top
View user's profile Send private message Send e-mail
bornsoft
Contributor
Contributor


Joined: 19 Feb 2009
Posts: 113
Location: Germany

PostPosted: Tue Nov 15, 2011 8:44 am    Post subject: Reply with quote

Fine. I'm glad you like it.

BTW: When I started this I planned to implement BBCode output as well. Then I tested a little here in the forum, but it's not possible to chanche the font face with BBCode here at VDSWorld so it does not make much sense.

If one of the admins of this forum could enable a BBCode tag for a fixed width font and not trimmed front spaces like the <pre> tag in html, I easy could make the VDSHighlighter produce the VDS highlighted code for this forum.

Here an example in the standard font:

%i = 2
repeat
%i = @pred(%i)
until @equal(%i,0)


Cheers

bornSoft
Back to top
View user's profile Send private message Visit poster's website
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Tue Nov 15, 2011 3:21 pm    Post subject: Reply with quote

Works well on Windows 7

Nice app...

Nathan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum




Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group