// Make the first character in the first paragraph of the active tab be
// superscript.
const documentTab =
DocumentApp.getActiveDocument().getActiveTab().asDocumentTab();
const text = documentTab.getBody().getParagraphs()[0].editAsText();
text.setTextAlignment(0, 0, DocumentApp.TextAlignment.SUPERSCRIPT);
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-12-03。"],[[["TextAlignment is used to set the alignment of text, such as normal, superscript, or subscript."],["You can access TextAlignment properties using `DocumentApp.TextAlignment` followed by the specific property like `NORMAL` or `SUPERSCRIPT`."],["The provided code snippet demonstrates how to apply superscript alignment to the first character of a paragraph."]]],[]]