You can set a format like(if you allow to edit):
This is my paragraph.[This contains almost 100 characters][citation needed].
so square bracket will represent this range need the citation.
or you can get the user selected text and format it accordingly like:
function getSelectionText() {
var html = "";
if (typeof window.getSelection != "undefined") {
var sel = window.getSelection();
if (sel.rangeCount) {
var container = document.createElement("div");
for (var i = 0, len = sel.rangeCount; i < len; ++i) {
container.appendChild(sel.getRangeAt(i).cloneContents());
}
html = container.innerHTML;
}
} else if (typeof document.selection != "undefined") {
if (document.selection.type == "Text") {
html = document.selection.createRange().htmlText;
}
}
alert(html);
}
Code taken from Tim Down: Return HTML from a user-selected text