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 6207667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:40:21+00:00 2026-05-24T05:40:21+00:00

What would be an effective way of allowing users to post inline-comments within a

  • 0

What would be an effective way of allowing users to post inline-comments within a block of text on a web page?

For example, if there was an article such as:

congue eget ipsum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

I would like visitors to the webpage to be able to comment on some text where they can select a few words and start typing an inline-comment. Having an index for the words so each word has a number wouldn’t work because the text could be edited and then the word numbers wouldn’t be accurate.

Is there anything wrong with changing the stored text and adding some markup for each comment? Such as:

congue eget ipsum. Cum sociis natoque <user:123;comment:123>penatibus et magnis</user:123;comment:123> dis parturient montes, nascetur ridiculus mus.

This way I could parse the text and then pull the comments from a database and display them inline or in a balloon or whatever.

Are there any better solutions for this?

  • 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-24T05:40:22+00:00Added an answer on May 24, 2026 at 5:40 am

    Well first of all, changing the underlying markup wouldn’t work well because what happens if inline comments overlap?

    What happens when the text is edited in such a way that the words that were changed contained an inline comment?

    There’s really no “perfect” way of doing this without having more specific specifications. I suggest storing the comments as an index of words as you suggested. If the text is modified, run a diff between the old version and the new version. Using this diff, you can attempt to update the indices of the inline comments and remove comments that were placed on modified pieces of text.

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

Sidebar

Related Questions

I am looking for an effective way to receive feedback from users from within
What would be the most effective way to grab the schema + table name
I would like to know the simplest and most effective way to open and
For a web application, I would like to create a simple but effective licensing
I was wondering what would be a simple and effective way to trigger a
Question: What would be the most effective way of doing a nested list which
what would be the most effective way to implement search for a string in
What would be the most effective way (that is, best ratio of effort vs
I'm wondering if there is an effective way to put a menu into an
I was wondering if there is a quick and effective way to remove all

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.