<commit_before>/*jslint vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 4, maxerr: 50 */
/*global define, brackets, $, document, Mustache*/

define(function (require, exports, module) {
	"use strict";
	
	var EditorManager  = brackets.getModule("editor/EditorManager"),
		ExtensionUtils = brackets.getModule("utils/ExtensionUtils"),
		lineWidgetHTML = require("text!inlineWidget.html"),
		widgetsErrors  = [],
		gutters        = [];

		ExtensionUtils.loadStyleSheet(module, "main.less");
	
	//Function that highlights the line(s) with errors
	function markErrors(lineStart, lineEnd, charStart, charEnd) {
		var editor   = EditorManager.getFocusedEditor();
		var allMarks = editor._codeMirror.getAllMarks();

		if(!allMarks.length){
			editor._codeMirror.markText({line: lineStart, ch: charStart},
				{line: lineEnd, ch: charEnd},
				{ className: "errorHighlight"});
		}
	}
	
	//Function that clears all the highlighted lines
	function clearErrors(){<commit_msg>Fix #27 Highlighting error with <a> tag<commit_after>/*jslint vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 4, maxerr: 50 */
/*global define, brackets, $, document, Mustache*/

define(function (require, exports, module) {
	"use strict";
	
	var EditorManager  = brackets.getModule("editor/EditorManager"),
		ExtensionUtils = brackets.getModule("utils/ExtensionUtils"),
		lineWidgetHTML = require("text!inlineWidget.html"),
		widgetsErrors  = [],
		gutters        = [];

		ExtensionUtils.loadStyleSheet(module, "main.less");
	
	//Function that highlights the line(s) with errors
	function markErrors(lineStart, lineEnd, charStart, charEnd) {
		var editor   = EditorManager.getFocusedEditor();
		var allMarks = editor._codeMirror.getAllMarks();

		//if(!allMarks.length){
			editor._codeMirror.markText({
				line: lineStart, 
				ch: charStart
			},{
				line: lineEnd, 
				ch: charEnd
			},{ 
				className: "errorHighlight"
			});
		//}
	}
	
	//Function that clears all the highlighted lines
	function clearErrors(){
{'fraction_non_alphanumeric': 0.13402061855670103, 'fraction_numerical': 0.0039273441335297005, 'mean_word_length': 4.478494623655914, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3093129', 'n_tokens_mistral': 707, 'n_tokens_neox': 611, 'n_words': 156}