.. _stdlib_das_source_formatter: ===================== Source code formatter ===================== .. das:module:: das_source_formatter The DAS_SOURCE_FORMATTER module implements source code formatting for daslang. It can parse and re-emit daslang source code with consistent indentation, spacing, and line breaking rules. Used by editor integrations and code quality tools. All functions and symbols are in "das_source_formatter" module, use require to get access to it. .. code-block:: das require daslib/das_source_formatter ++++++++++ Formatting ++++++++++ * :ref:`format_source (file_data: array\) : string ` * :ref:`format_source_string (file_data: string const&) : string ` .. _function-das_source_formatter_format_source_array_ls_uint8_gr_: .. das:function:: format_source(file_data: array) : string Formats daslang source code given as a byte array and returns the formatted result. :Arguments: * **file_data** : array implicit .. _function-das_source_formatter_format_source_string_string_const_ref_: .. das:function:: format_source_string(file_data: string const&) : string Formats a daslang source code string and returns the formatted result. :Arguments: * **file_data** : string\ & implicit