Adds doc-comment support to the given languages for the given documentation language.

@param {string[]|string} languages
@param {Object} docLanguage
12949
function addSupport(languages, docLanguage) {
		if (typeof languages === 'string') {
			languages = [languages];
		}

		languages.forEach(function (lang) {
			docCommentSupport(lang, function (pattern) {
				if (!pattern.inside) {
					pattern.inside = {};
				}
				pattern.inside.rest = docLanguage;
			});
		});
	}
479006
@Override
  public final void setLang(final Languages pLang) {
    this.lang = pLang;
    if (this.itsId == null) {
      this.itsId = new IdI18nInvItem();
    }
    this.itsId.setLang(this.lang);
  }
670615
function Document(version, encoding) {
    version = version || '1.0';
    var doc = new bindings.Document(version);
    doc.encoding(encoding || 'utf8');
    return doc;
}
1298662
def setLanguage(self, language):
        
        cls = XCodeHighlighter.byName(language)
        if cls:
            self._highlighter = cls(self.document())
329153
public void addInlineDeprecatedComment(Element e, DocTree tag, Content htmltree) {
        CommentHelper ch = utils.getCommentHelper(e);
        addCommentTags(e, ch.getBody(configuration, tag), true, false, htmltree);
    }
411867
public final void setLang(final Languages pLang) {
    this.lang = pLang;
    if (this.itsId == null) {
      this.itsId = new IdLangPreferences();
    }
    this.itsId.setLang(this.lang);
  }
652991
function _updateLanguageInfo(editor) {
        var doc = editor.document,
            lang = doc.getLanguage();

        // Show the current language as button title
        languageSelect.$button.text(lang.getName());
    }
156280
function sortDocs(docs, sortType) {
    if (!sortType) return;
    const fnSorter = sorter.getSymbolsComparer(sortType, '$longname');
    const fnPropSorter = sorter.getSymbolsComparer(sortType, 'name');
    docs.sort(fnSorter);
    docs.forEach(symbol => {
        if (symbol && Array.isArray(symbol.properties)) {
            symbol.properties.sort(fnPropSorter);
        }
    });
}
64490
function( documents ) {
    
    var key, document
    var fillwords = new Array( 0 )
    
    if( this.language && this.language.fillwords ) {
      fillwords = this.language.fillwords
    }
    
    for( key in documents ) {
      
      document = ( documents[ key ] + '' )
      document = document.toLowerCase()
      document = document.split( /\W+/ )
      
      documents[ key ] = document.reduce(
        function ( document, word ) {
          if( !~fillwords.indexOf( word ) && word !== '' ) {
            document[ word ] = ( document[ word ] ? document[ word ] + 1 : 1 )
          }
          return document
        },
        Object.create( null )
      )
      
    }
    
    return documents
    
  }
147530
function applyJsDocTags(comment, removeTagLine) {
  removeTagLine = (undefined !== removeTagLine) ? removeTagLine : true;
  var lines = [];
  comment.tags = [];

  for (var i = 0; i < comment.lines.length; i++) {
    var line = comment.lines[i];

    if ('@' === line.charAt(0)) {
      var spacePos = line.indexOf(' ');
      if (-1 === spacePos) {
        spacePos = line.length;
      }
      var tag = line.substr(1, spacePos).trim();
      var value = line.substr(spacePos).trim();
      comment.tags.push({ name: tag, value: value || true });
    } else {
      lines.push(line);
    }
  }

  if (removeTagLine) {
    comment.lines = lines;
  }
}
1222448
def supported_language(lang):
    
    try:
      self.get_collection(lang=lang)
      return True
    except LanguageNotSupported as e:
      return False
1102212
function includeReferences(include, doc) {
  _.each(include, function (keypath) {
    var parts = keypath.split('.')
    var key = parts.shift()

    if (_.has(doc, key) && _.isString(doc[key])) {
      var ref = doc[key].split(':')
      doc[key] = getDocument({ collection: ref[0], id: ref[1] })

      if (parts.length > 0) {
        includeReferences(parts.slice(1), doc[key])
      }
    }
  })
}
1265370
function AddDocuments () {
		// Create Helpdoc Route
		HLP .all("/", ReqHandle.Valid(true), GetHelp);
		API .use('/docs', HLP);
	}
987771
function I18n(languageList, defaultLanguage) {
    this.store = appendLanguage({}, languageList);
    this.setLanguage(
        defaultLanguage
        || typeof navigator !== 'undefined' && navigator.language.toLowerCase()
        || 'en-us'
    );
}
216435
function expand(docset, customTags) {
    docset["comment"] = DocParser.parse(docset["comment"], customTags);
    docset["tagname"] = DocType.detect(docset["comment"], docset["code"]);

    if (docset["tagname"] == "class")
      return DocExpander.expand(docset);
    else
      return docset;
}
1177641
public void setLanguage(LanguageMode language) {
    checkState(language != LanguageMode.NO_TRANSPILE);
    checkState(language != LanguageMode.UNSUPPORTED);
    this.setLanguageIn(language);
    this.setLanguageOut(language);
  }
529993
function _getLangWithDesc( desc ) {
    const results = ( desc ) ? tags.search( desc ).filter( _languagesOnly ) : [];
    return results[ 0 ] || '';
}