﻿# CSV File Directives

_Updated May 2023_

To assert greater control over details of the output file formatting, you may optionally insert //XL directives into the CSV file. These should be at the top, before any data lines, except in the case of the //XL,SetRow directive, which may be inserted anywhere above the affected row(s).

The syntax for the //XL directives is a bit tricky, and differs from normal A-Shell conventions. See [Notes on Syntax](notesonsyntax.md).

| **Directive** | **Operation** |
|------|------|
| [AddComment](csv2xldirectivesdetail.md#csv2xl-addcomment) | Add a cell comment. |
| [AddFootnote](addfootnote.md) | Add explanatory note at bottom of sheet. |
| [AddLink](addlink.md) | Create link from specified cell to footnotes. |
| [AddSheet](addsheet.md) | Add or rename sheet. |
| [AddTotals](addtotals.md) | Override Totals directive in ini file. |
| [DefineFont](csv2xldirectivesdetail.md#csv2xl-definefont) | Define a font and give it an identifier. |
| [DefineFormat](csv2xldirectivesdetail.md#csv2xl-defineformat) | Define a format and give it an identifier. |
| [MergeCells](csv2xldirectivesdetail.md#csv2xl-mergecells) | Merge cells. |
| [SetAppendSeqno](csv2xldirectivesdetail.md#csv2xl-setappendseqno) | Override AppendSeqno directive in ini file. |
| [SetBanner](setbanner.md) | Add text and special formatting to line one. |
| [SetCol](setcol.md) | Set attributes for one or more columns. |
| [SetDefaultFont](csv2xldirectivesdetail.md#csv2xl-setdefaultfont) | Set default font. |
| [SetGroup](setgroup.md) | Create a row group. |
| [SetIni](csv2xldirectivesdetail.md#csv2xl-setini) | Override default ini file name. |
| [SetLaunch](csv2xldirectivesdetail.md#csv2xl-setlaunch) | Override Launch directive in ini file. |
| [SetOutputFormat](csv2xldirectivesdetail.md#csv2xl-setoutputformat) | Override OutputFormat directive in ini file. |
| [SetPageBreak](csv2xldirectivesdetail.md#csv2xl-setpagebreak) | Force page break at specified location. |
| [SetPrint](setprint.md) | Set various print features. |
| [SetRGBmode](specifying-colors.md) | Enable RGB color specifications. |
| [SetRow](csv2xldirectivesdetail.md#csv2xl-setrow) | Set attributes for a row. |
| [SplitRow](csv2xldirectivesdetail.md#csv2xl-splitrowcol) | Freeze one or more rows at top of sheet. |
| [SplitCol](csv2xldirectivesdetail.md#csv2xl-splitrowcol) | Freeze one or more columns at left of sheet. |


