Title: Code formatter for PowerBI
Author: mogular
Published: <strong>2020 年 12 月 14 日</strong>
Last modified: 2020 年 12 月 14 日

---

搜索插件

![](https://ps.w.org/code-formatter-for-powerbi/assets/banner-772x250.png?rev=2438884)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/code-formatter-for-powerbi/assets/icon.svg?rev=2438884)

# Code formatter for PowerBI

 作者：[mogular](https://profiles.wordpress.org/mogular/)

[下载](https://downloads.wordpress.org/plugin/code-formatter-for-powerbi.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/code-formatter-for-powerbi/#description)
 * [评价](https://cn.wordpress.org/plugins/code-formatter-for-powerbi/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/code-formatter-for-powerbi/#developers)

 [支持](https://wordpress.org/support/plugin/code-formatter-for-powerbi/)

## 描述

WordPress plugin for formatting and beautifying of DAX and M code
 (as used in PowerQuery,
PowerBI and Excel PowerPivot)

#### M code (PowerQuery)

    ```
    [mcode theme=dark linewidth=90 width=600px ]let a = 1 in a[/mcode]
    ```

#### DAX code (PowerBI, PowerPivot)

    ```
    [daxcode width=600px region=US]EVALUATE myTable[/daxcode]
    ```

All shortcode attributes are optional.

The plugin formats your code, by sending it to the following free services and showing
the result on your site.
 The formatted results for unchanged code are cached (for
30 days) via WordPress transients.

 * M code is formatted by [PowerQueryFormatter](https://www.powerqueryformatter.com)
   
   [Terms of use](https://www.powerqueryformatter.com/api) [API Documentation](https://www.powerqueryformatter.com/api)
 * DAX code is formatted by [DAXFormatter](https://www.daxformatter.com)
    [Terms of use](https://www.daxformatter.com)(
   scroll down to “Terms of use”) [API Documention](https://www.sqlbi.com/blog/marco/2014/02/24/how-to-pass-a-dax-query-to-dax-formatter/)

By using the plugin (and therefore using the services of [DAXFormatter](https://www.daxformatter.com)
and [PowerQueryFormatter](https://www.powerqueryformatter.com)) you agree to their
terms of use (see links above).

Power BI is a registered trademark of Microsoft Corp.

## 常见问题

### I need a feature the plugin does not provide

This plugin is open source. Please provide a pull request or create an issue on 
the [github repository](https://github.com/mogular/wp-powerbicodeformatter).

## 评价

此插件暂无评价。

## 贡献者及开发者

「Code formatter for PowerBI」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ mogular ](https://profiles.wordpress.org/mogular/)

[帮助将「Code formatter for PowerBI」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/code-formatter-for-powerbi)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/code-formatter-for-powerbi/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/code-formatter-for-powerbi/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/code-formatter-for-powerbi/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/code-formatter-for-powerbi/)。

## 更新日志

#### 1.0.0

Initial release

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**5 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **5.6.17**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/code-formatter-for-powerbi/)
 * 标签
 * [code](https://cn.wordpress.org/plugins/tags/code/)[powerbi](https://cn.wordpress.org/plugins/tags/powerbi/)
 *  [高级视图](https://cn.wordpress.org/plugins/code-formatter-for-powerbi/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/code-formatter-for-powerbi/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/code-formatter-for-powerbi/reviews/)

## 贡献者

 *   [ mogular ](https://profiles.wordpress.org/mogular/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/code-formatter-for-powerbi/)