src/require_hint_provider.js
function create_hint(value, match, type, title, description, link) {
        var $hint = $(document.createElement('span'));
        $hint.addClass('brackets-js-hints brackets-js-hints-with-type-details');
        $hint.attr('title', title);
        if (match) {
            value = value.replace(match, '');
            $hint.append($(document.createElement('span')).text(match).addClass('matched-hint'));
            $hint.append($(document.createElement('span')).text(value).addClass('require-hint-value'));
        }
        else {
            $hint.append($(document.createElement('span')).text(value).addClass('require-hint-value'));
        }
        if (link) {
            $hint.append($(document.createElement('a')).addClass('jshint-link').attr('href', link));
        }
        $hint.append($(document.createElement('span')).text(type).addClass('brackets-js-hints-type-details'));
        $hint.append($(document.createElement('span')).text(type).addClass('jshint-description'));
        if (description) {
            $hint.append($(document.createElement('span')).text(description).addClass('jshint-jsdoc'));
        }

        return $hint;
    }
function create_hint(value, match, type, title, description, link) {
        var $hint = $(document.createElement('span'));
        $hint.addClass('brackets-js-hints brackets-js-hints-with-type-details');
        $hint.attr('title', title);
        if (match) {
            value = value.replace(match, '');
            $hint.append($(document.createElement('span')).text(match).addClass('matched-hint'));
            $hint.append($(document.createElement('span')).text(value).addClass('require-hint-value'));
        }
        else {
            $hint.append($(document.createElement('span')).text(value).addClass('require-hint-value'));
        }
        if (link) {
            $hint.append($(document.createElement('a')).addClass('jshint-link').attr('href', link));
        }
        $hint.append($(document.createElement('span')).text(type).addClass('brackets-js-hints-type-details'));
        $hint.append($(document.createElement('span')).text(type).addClass('jshint-description'));
        if (description) {
            $hint.append($(document.createElement('span')).text(description).addClass('jshint-jsdoc'));
        }

        return $hint;
    }
function create_hint ( value , match , type , title , description , link ) { var $hint = $ ( document . createElement ( 'span' ) ) ; $hint . addClass ( 'brackets-js-hints brackets-js-hints-with-type-details' ) ; $hint . attr ( 'title' , title ) ; if ( match ) { value = value . replace ( match , '' ) ; $hint . append ( $ ( document . createElement ( 'span' ) ) . text ( match ) . addClass ( 'matched-hint' ) ) ; $hint . append ( $ ( document . createElement ( 'span' ) ) . text ( value ) . addClass ( 'require-hint-value' ) ) ; } else { $hint . append ( $ ( document . createElement ( 'span' ) ) . text ( value ) . addClass ( 'require-hint-value' ) ) ; } if ( link ) { $hint . append ( $ ( document . createElement ( 'a' ) ) . addClass ( 'jshint-link' ) . attr ( 'href' , link ) ) ; } $hint . append ( $ ( document . createElement ( 'span' ) ) . text ( type ) . addClass ( 'brackets-js-hints-type-details' ) ) ; $hint . append ( $ ( document . createElement ( 'span' ) ) . text ( type ) . addClass ( 'jshint-description' ) ) ; if ( description ) { $hint . append ( $ ( document . createElement ( 'span' ) ) . text ( description ) . addClass ( 'jshint-jsdoc' ) ) ; } return $hint ; }
Create code hint link with details
@param {string} value
@param {string} match
@param {string} type
@param {string} title
@param {string} link
Create code hint link with details