Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6533951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:11:30+00:00 2026-05-25T10:11:30+00:00

I am currently trying to write an application which invloves syntax highlighting codes. (HTML,

  • 0

I am currently trying to write an application which invloves syntax highlighting codes. (HTML, XML, PHP, JavaScript, CSS and preferably more).

It has been going very well but I have come across a probelm: syntax highlighting. I have written a class for syntax highlighting XML myself, but it is incredibly slow, inefficient and takes so long. I loaded, as a test, a 600 line XML document, and it took two whole minutes to syntax highlight. What do people recommend for Syntax Highlighting on Android? Are there any good libraries? Are there any good algorithms I can use (I don’t mind rewriting it from another language), or any standard techniques? What about Regex?

I also have the problem that when I did the 600-line XML test yesterday the EditText widget I was using could not cope with the coloured text and eventually I recieved a ANR error, but that is a different question I will post elsewhere, though if anyone does incidentally have a solution that would be great.

Thanks so much!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:11:30+00:00Added an answer on May 25, 2026 at 10:11 am

    You already have a lots of syntax highlighting tools available in Javascript. You may need to do slight modifications. Take a look at this. I use it in my blog everyday.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently trying to write my first CoreData-Application, which needs to access the applications
I am trying to write a graphics application in C++. It currently uses OGRE
I'm learning domain driven design. I am currently trying to write a simply application
I'm currently trying to read in an XML file, make some minor changes (alter
My team is currently trying to automate the deployment of our .Net and PHP
I'm trying to write a small application that needs to use the clipboard for
I'm trying to write a web application using the new offline capabilities of HTML5.
I am currently trying to write a class in Android that will Scan for
I'm currently developing an asp.net mvc 2 application which uses the default SqlMembershipProvider for
I'm trying to write the most basic application for windows phone 7 and want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.