src/features/ParameterHintsManager.js
function formatHint(hints) {
        $hintContent.empty();
        $hintContent.addClass("brackets-hints");

        function appendSeparators(separators) {
            $hintContent.append(separators);
        }

        function appendParameter(param, documentation, index) {
            if (hints.currentIndex === index) {
                $hintContent.append($("<span>")
                    .append(_.escape(param))
                    .addClass("current-parameter"));
            } else {
                $hintContent.append($("<span>")
                    .append(_.escape(param))
                    .addClass("parameter"));
            }
        }

        if (hints.parameters.length > 0) {
            _formatParameterHint(hints.parameters, appendSeparators, appendParameter);
        } else {
            $hintContent.append(_.escape(Strings.NO_ARGUMENTS));
        }
    }
function formatHint(hints) {
        $hintContent.empty();
        $hintContent.addClass("brackets-hints");

        function appendSeparators(separators) {
            $hintContent.append(separators);
        }

        function appendParameter(param, documentation, index) {
            if (hints.currentIndex === index) {
                $hintContent.append($("<span>")
                    .append(_.escape(param))
                    .addClass("current-parameter"));
            } else {
                $hintContent.append($("<span>")
                    .append(_.escape(param))
                    .addClass("parameter"));
            }
        }

        if (hints.parameters.length > 0) {
            _formatParameterHint(hints.parameters, appendSeparators, appendParameter);
        } else {
            $hintContent.append(_.escape(Strings.NO_ARGUMENTS));
        }
    }
function formatHint ( hints ) { $hintContent . empty ( ) ; $hintContent . addClass ( "brackets-hints" ) ; function appendSeparators ( separators ) { $hintContent . append ( separators ) ; } function appendParameter ( param , documentation , index ) { if ( hints . currentIndex === index ) { $hintContent . append ( $ ( "<span>" ) . append ( _ . escape ( param ) ) . addClass ( "current-parameter" ) ) ; } else { $hintContent . append ( $ ( "<span>" ) . append ( _ . escape ( param ) ) . addClass ( "parameter" ) ) ; } } if ( hints . parameters . length > 0 ) { _formatParameterHint ( hints . parameters , appendSeparators , appendParameter ) ; } else { $hintContent . append ( _ . escape ( Strings . NO_ARGUMENTS ) ) ; } }
Bold the parameter at the caret.

@param {{inFunctionCall: boolean, functionCallPos: {line: number, ch: number}}} functionInfo -
tells if the caret is in a function call and the position
of the function call.
Bold the parameter at the caret .