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

  • SEARCH
  • Home
  • 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 7053589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:31:24+00:00 2026-05-28T03:31:24+00:00

Yes, sound weird. But I’m trying to make a text editor inside the browser.

  • 0

Yes, sound weird. But I’m trying to make a text editor inside the browser. I’ve seen some programs use it. Like wordpress and unet. But I’m not sure if they use a custom one or not.
However, this topic explains why geshi won’t work in textarea:
Why isn't textarea an input[type="textarea"]?
I simply get the code of the colors. Just wondering if there’s a way around this. I’ve tried searching but I was without luck.

<textarea><?php geshi_highlight($source, 'php'); ?></textarea>

edit::the variable $source contains php code.

Output is basically the span style that geshi outputs.

  • 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-28T03:31:25+00:00Added an answer on May 28, 2026 at 3:31 am

    That kind of formatting does not work in a textarea, that’s one its properties. You probably want to make some HTML contentEditable, but it won’t work quickly out of the box, there needs to be a mechanism where an alteration triggers new highlighting. And that would probably involve a lot of traffic to and from the server, to the point of it not being a viable solution. You probably would end up using a javascript syntax highlighter like http://jush.sourceforge.net/ or others, and I haven’t actually seen a ‘live’ syntax highlighter editor in the wild yet (as in: only plain textareas with a syntax-highlighted 2nd box), but then again I’ve never been searching for it…. I like my editors local ;).

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

Sidebar

Related Questions

...Yes I've seen: Best Resources for Learning JavaFX? but it doesn't really answer the
Yes, I know you could use regular objects as associative arrays in JavaScript, but
I'm trying to make a HTML5 webapp that simply plays a sound over and
This may sound complicated but I can answer any questions. What I am trying
Yes, I know it sounds weird, but it doesn't, the question is why, and
Well I know it might sound a bit strange but yes my question is:
As title implies. Yes, i know it's horribad to use .abort() but hear me
Yes, this might sound like a newbie question but there's a TWIST! ( And
Yes, There's More Than One Way To Do It but there must be a
I am using asp.net and c#. I know it sounds weird and unusual but

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.