Only parse highlights (script keyword parsing) for script editor

This commit is contained in:
Lirusaito
2019-03-24 18:54:10 -04:00
parent bd39b29c1d
commit 1839a37294
4 changed files with 2 additions and 6 deletions

View File

@@ -292,10 +292,7 @@ void LLFloaterChat::addChatHistory(const LLChat& chat, bool log_to_file)
history_editor->setParseHTML(TRUE);
history_editor_with_mute->setParseHTML(TRUE);
history_editor->setParseHighlights(TRUE);
history_editor_with_mute->setParseHighlights(TRUE);
if (!chat.mMuted)
{
add_timestamped_line(history_editor, chat, color);

View File

@@ -553,7 +553,6 @@ BOOL LLFloaterIMPanel::postBuild()
mHistoryEditor = getChild<LLViewerTextEditor>("im_history");
mHistoryEditor->setParseHTML(TRUE);
mHistoryEditor->setParseHighlights(TRUE);
sTitleString = getString("title_string");
sTypingStartString = getString("typing_start_string");

View File

@@ -272,6 +272,7 @@ BOOL LLScriptEdCore::postBuild()
mEditor = getChild<LLViewerTextEditor>("Script Editor");
mEditor->setHandleEditKeysDirectly(TRUE);
mEditor->setParseHighlights(TRUE);
childSetCommitCallback("lsl errors", &LLScriptEdCore::onErrorList, this);
childSetAction("Save_btn", boost::bind(&LLScriptEdCore::doSave,this,FALSE));

View File

@@ -1461,7 +1461,6 @@ LLView* LLViewerTextEditor::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlF
BOOL parse_html = true;
node->getAttributeBOOL("allow_html", parse_html);
text_editor->setParseHTML(parse_html);
text_editor->setParseHighlights(TRUE);
BOOL commit_on_focus_lost = FALSE;
node->getAttributeBOOL("commit_on_focus_lost",commit_on_focus_lost);