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)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://tw.wordpress.org/plugins/code-formatter-for-powerbi/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/code-formatter-for-powerbi/#reviews)
 * [開發資訊](https://tw.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 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.6.17**
 *  PHP 版本需求 ** 7.2 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/code-formatter-for-powerbi/)
 * 標籤:
 * [code](https://tw.wordpress.org/plugins/tags/code/)[powerbi](https://tw.wordpress.org/plugins/tags/powerbi/)
 *  [進階檢視](https://tw.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/)