2eNetWorX :: Development Community with Tutorial, Script, Code, Programming sections for Visual Basic, Active Server Pages and .Net Framework Developers.  

HiLiteR - 2eNetWorX


HiLiteR is a new approach to the "view source" utilities by adding extensible syntax highlighting.

 
  2eNetWorX :: ASP, VB, Asp.Net, Vb.Net, C#, dotNet, .Net OpenSource Projects
MyDev What's New | Projects | Tutorials & Articles | Services | Stats | Contact Us
Guest-00124    /dev :: home :: projects :: hiliter  49 online visitors
Popular Projects

  • TableEditor
  • StatCounteX
  • 2eNetWorX/Dev
  • MiniSurvey
  • OpenForum
  • PowerTool
  • ShopEZ
  • Trans-It
  • HiLiteR
  • (View All Projects)


    Top 10

    » Contributions


    Tutorials & Articles

    » Recordset Cache
    » OpenSource
    » Statisticus
    » OpenCYA!


    Code Samples

    » Undocumented...
    » Ask For Login
    » DSN'less Connection
    » Who's Online?
    » (All Samples)


    Link Back



    Site Banner


  • HiLiteR

    Quick Info
    Update5/12/2000
    Version1.1
    PlatformASP
    PageViews1,988,152
    Downloads27,854

    HiLiteR is a new approach to the "view source" utilities by adding extensible syntax highlighting feature.

    Introduction

    Human eye distinguishes the objects by their size, position and color, the last of which is the primary subject of HiLiteR.

    Developers usually works with high level IDE's because they ease the programming tasks by providing intellisense, realtime code check and syntax highlighting.

    Although HiLiteR is not an IDE, it gives you the ability to highlight your code for publication. The parsing and hiliting engine might be used for different languages with some changes.

    Currently, HiLiteR only supports ASP, either with VBSctipt or JScript.

    My first lame attempt for hiliting was using a similar approach to Replace function. Of course, it worked, for every single word. No matter it is in an ASP block or comment or even HTML. So, I needed a way to determine if the word is in asp, comment or html. I've added conditions and flags to state if the processor is in an asp block, or string etc.

    Finally, what we got is a char-by-char processing engine which scans the file and finds functions, objects, properties, comments and strings, then assigns colors to them. (You may edit the css file to define colors for different language elements.)

    Performance? It really sucks! It takes up to 10 seconds for an 10K 'heavily coded' page. So I recommend you to use it offline. Execute it once and copy the generated html output between 'HiLiteR Code Block' comments. This is what I do.

    I'm not coming from a C/C++ background, neither I have experience on compiler design, so the code is not fully optimized.

    Download the code, check it out, report the bugs you've found, recommend a feature or extension for it, anything... Do you think it is not the way for parsing and coloring, let me know your way then :)

    For the sake of the project being a source code viewer, here are your links for the files included in the releases. (As my recommendation, I used HiLiteR to generate the html output).

    » src.asp Parsing and Highlighting Engine.
    » syntaxdef.asp Syntax Definitions.

    I've also made a fancy black-background style sheet for HiLiteR. Check out the src.asp on black, you may download the css file as well.


    Rated:
    by Aspin.com users
    What do you think?
    Please Rate HiLiteR at HotScripts.com



     :: downloads
     HiLiteR ASP/JScript (9K)
     HiLiteR for ASP/VBScript (9K)
     :: readings
     :: feedback
    Upload a File
    Report a bug
    Recommend a feature
    Ask a question
    Submit a site
     :: interactive
    User Uploads
    Reported Bugs
    Recommended Features
    Questions & Answers
    Sites Powered By HiLiteR

    Forum: HiLiteR (Total 0 messages)
    » Send New Message View Mode : full | preview | titles

    Who's Online

     Bot: Msn
     Bot: Google
     (43) guests
     (4) repeated

    How is this done?


    Popular Web Sites

      FogBugz Hosting Plans
      SubVersion Hosting Plans
      SourceGear Vault
      Hosting Plans

      Note Thing - A Perfect
      To-Do List Software
      .net Localization
      components from SWBOX

      Mary Kay Products

    Admin's Toolbox

    Web Database Management
    Web Site Statistics
    Survey Manager
    Integrated forum for webpages
    OpenSource WebSite Framework


      privacy policy , license , disclaimer , © 2000-2004, 2eNetWorX.   [page generated in 55 ms.]