Would it be possible to iclude a highlighter for Delphi, like you can add this for VB, and there is one for code, it would be great to include one for Delphi, the amount of code and examples i post, it would make it clearier to see
Printable View
Would it be possible to iclude a highlighter for Delphi, like you can add this for VB, and there is one for code, it would be great to include one for Delphi, the amount of code and examples i post, it would make it clearier to see
Quote:
Originally Posted by Madboy
It would be nice, it would make the code more neater :)
Cheers,
RyanJ
The Code tags are built-in to the forum software, and the VBCode tags are a special modification for this site. To allow highlighting for Delphi (or any other language) would require a similar modification.
As you may already be aware, we are not keen to make any alterations to the forum software (basically it wont happen unless there is a very strong case for it), as any extensions can have unexpected impacts elsewhere.
As Delphi is only used by a small minority of users here, this wont be happening I'm afraid :(
What I would recommend is using the Code tags, and (if you feel bored!) create your own desktop formatter, so that it puts in any appropriate colouring tags, ready for posting on this site.
If you did this, you could put it in the UtilityBank for our other Delphi users to use when they post. :)
Thats a great idea si, might get started on it, who knows, maybe i could do one for Delphi, HTML & VB etc :)Quote:
Originally Posted by si_the_geek
Quote:
Originally Posted by Madboy
That would be good and useful to a lot of people if you were to distribute it :)
Cheers,
RyanJ
There is already a code formatter for VB in the CodeBank. It is pretty cool. It was developed and submitted by Arachnid13.Quote:
Originally Posted by Madboy
Im sure that is good, but if i were to make a multi-format highlighter, that would be more useful, to tailor for C#, C++, Delphi, HTML & VB etcQuote:
Originally Posted by Hack
Now if you built formatter with a function to select the language you wanted to format the code for, that would be well beyond way cool!! :thumb:Quote:
Originally Posted by Madboy
That was my intentions, if misunderstood in my second post i think, i will get onto it asap, let the power of delphi behold....... :pQuote:
Originally Posted by Hack
Excellent, I look forward to seeing it :)
There are also several code color'ers on CodeGuru with the code They can be used to format into HTML and vBulletin tags. They would also make a good starting point for doing Delphi coloring.
Brad!
Thanks, i might take a look. I have just been experementing, i already know how to parse URL's in a Rich Edit box, just need to work on colouring variable names etc :wave:Quote:
Originally Posted by brad jones
I looked on that site but found nothing :ehh:
However, since then i have been working hard to work on this new syntax highlighter. So you could call this an update.
So far i have created:
> A tabbed interface, which comprises of Delphi, HTML and VB tab layout
> Parsing HTML is complete, all tags are formatted appropriately
Problems:
It is going to be a really hard job for me to work out the colouring for Delphi and VB, highlighting correct variables, function, procedure names etc, especially in Delphi as it is harder :mad:
I will need to replace the tags to the correct format for this forum, as standard tags might not be recnognised.
What i aim to do now, is basically use the HTML colouring code i have now(it would be hard and time lengthy to re-write a Delphi and VB function), and use it as a new function. I will then need to replace the variables etc into tags, using Replace methods. So for example:
If you typed: Dim, or //Comment - processing this would replace it into:
<blue>Dim<blue>
<green>//Comment<green>
This could get confusing, i would appreciate some pointers, as i could easily mix up the forums coding, and HTML style.
Hope this update makes more sense to you, then it did for me writing it :lol: