# Use Structure Designer for File Extensions other than CLW and INC

**URL:** <https://clarionhub.com/t/use-structure-designer-for-file-extensions-other-than-clw-and-inc/6788>\
**Category:** questions\
**Tags:** report, ide\
**Created:** [November 17, 2023, 4:32pm UTC](https://clarionhub.com/t/use-structure-designer-for-file-extensions-other-than-clw-and-inc/6788 "2023-11-17T16:32:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [November 17, 2023, 4:32pm UTC](https://clarionhub.com/t/use-structure-designer-for-file-extensions-other-than-clw-and-inc/6788/1 "2023-11-17T16:32:50Z")

</div>

I work on code that uses .RDEF file Extension to hold Reports. I cannot find a way to use Structure Designer for that. Ctrl+D does not work, and the Edit menu does not have the Structure Designer choice.

Below you see a WINDOW in an .RDEF file and the Edit menu missing Designer. It's the same for the REPORT.

 ![image](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/8/89810c7f92a2db49b4c12069fe432825ca148ff1.jpeg)

If I paste that code into a file named Test.CLW then it works

 ![image](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/7/77ed37480a602419e1b4719948383134b186b4bd.jpeg)

The RDEF file extension is configured as a Clarion file for Editor Syntax Highlighting.

 ![image](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/b/bf2d0f8abac58279c69cbcdcc1ad53c3d09ba09f.png)

Any idea how to make Designer open on any File Extension?

Will likely rename the files as .RDef.Inc because the copy/paste into a temp file is risky.

---

<div class="post-metadata">

**Author:** ![MarkGoldberg](https://clarionhub.com/user_avatar/clarionhub.com/markgoldberg/32/1511_2.png) [@MarkGoldberg](https://clarionhub.com/u/MarkGoldberg)\
**Post date:** [November 17, 2023, 7:59pm UTC](https://clarionhub.com/t/use-structure-designer-for-file-extensions-other-than-clw-and-inc/6788/2 "2023-11-17T19:59:43Z")

</div>

Just a thought…

KSS found 52 entries for CLW under %cwroot%\bin

I wonder if it would help to hack the files to add your extension

Maybe start with this one —v

%cwroot%\BIN\ADDINS\BACKENDBINDINGS\CLARIONBINDING\CLARIONWIN\CLARIONBINDING.ADDIN

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [November 17, 2023, 8:49pm UTC](https://clarionhub.com/t/use-structure-designer-for-file-extensions-other-than-clw-and-inc/6788/3 "2023-11-17T20:49:17Z")

</div>

Winner winner, chicken dinner

 ![image](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/9/9949cbfb30f42e5dbae8e1e6b77fcb60c3fad2a3.png)

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [November 17, 2023, 10:34pm UTC](https://clarionhub.com/t/use-structure-designer-for-file-extensions-other-than-clw-and-inc/6788/4 "2023-11-17T22:34:26Z")

</div>

> [@jslarve](#):
>
> Winner winner, chicken dinner

 ![image](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/5/5b72ffa5d3079e4169e956d0db160ae80c6a871a.png)

Close… The LanguageBinding showed Designer on the Edit menu, but it did not open it up the Report.

Adding the extension to the obviously named ``id=“ClaWinStructureDesigner”``` made Designer actually open. Note the use of Regex for these.

As MG suggested searching that file turned up that and I noticed it specified templates TPL TPW so I tested those and they worked with Designer so seemed like the place. I probably do not need the first change for this since the TPL/TPW files are not there, but I want it handled like a CLW.

 ![image](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/a/abccf6bd1805816ea0504b6fc5c3d2c666dcbf5e.png)

I also searched .CLW and added special extensions few other places.

* * *

I’ll past the XML incase it gets searched, and for copy/paste:

```xml
 <!-- Language description -->
 <Path name = "/SharpDevelop/Workbench/LanguageBindings">
   <LanguageBinding id = "Clarion"
                    guid = "{12B76EC0-1D7B-4FA7-A7D0-C524288B48A1}"
                    supportedextensions = ".clw;.inc;.int;.trn;.equ;.rdef;.edef;.gdef;.qdef;.def"
                    projectfileextension = ".cwproj"
                    class = "CWBinding.CWLanguageBinding" />

```

```xml
 <Path name = "/SharpDevelop/Workbench/DisplayBindings">
    <DisplayBinding id = "ClaWinStructureDesigner"
                    type = "Secondary"
                    fileNamePattern = "\.clw$|\.inc$|\.int$|\.trn$|\.equ$|\.tpl$|\.tpw$|\.rdef$|\.edef$|\.gdef$|\.qdef$|\.def$"
                    class = "CWBinding.Designer.WinStructureDesignerDisplayBinding" />
 </Path>

```
