Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support XAML/AXAML File #2745

Closed
Ruikoto opened this issue Jun 26, 2024 · 3 comments
Closed

Support XAML/AXAML File #2745

Ruikoto opened this issue Jun 26, 2024 · 3 comments
Labels
feature request Rider specific Features/bugs about the Rider IDE

Comments

@Ruikoto
Copy link

Ruikoto commented Jun 26, 2024

Have you checked the issues and discussions to ensure there are no duplicates?

Yes

Your programming languages

C#(WPF/Avalonia)

Free or paid?

Paid users

Expected Behavior

Hope to provide rainbow bracket support for XAML/AXAML.
XAML is the markup language for WPF, similar to XML.
AXAML is a markup language based on XAML, used for the cross-platform framework Avalonia. These two are the main development languages I use at work, and I hope that Rainbow Brackets can support these two languages.
(These two languages have exactly the same format, using a syntax similar to XML.)

Code snippet for test

<UserControl xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d" d:DesignWidth="1250" d:DesignHeight="720">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="2*"/>
			<RowDefinition Height="*"/>
		</Grid.RowDefinitions>

		<StackPanel Grid.Row="0" HorizontalAlignment="Center" Orientation="Horizontal" Margin="5,5,5,0">
			<Button Content="Import" Margin="5,5,5,0" Command="{Binding ImportCmd}"/>
			<Button Content="Export" Margin="5,5,5,0" Command="{Binding ExportCmd}"/>
		</StackPanel>

		<Grid Grid.Row="1" Margin="5,0,5,5">
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="*"/>
			</Grid.RowDefinitions>
			<TextBlock Grid.Row="0" Margin="2,0,2,2" Text="Device" FontWeight="Black" FontSize="18"/>
			<Border Grid.Row="1" BorderThickness="1" BorderBrush="DarkGray" Margin="0,5,0,5" CornerRadius="5" Padding="5">
				<Grid >
					<Grid.RowDefinitions>
						<RowDefinition Height="*"/>
						<RowDefinition Height="*"/>
					</Grid.RowDefinitions>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="*"/>
						<ColumnDefinition Width="*"/>
					</Grid.ColumnDefinitions>
				</Grid>
			</Border>
		</Grid>


		<Grid Grid.Row="2" Margin="0,5">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*"/>
				<ColumnDefinition Width="*"/>
			</Grid.ColumnDefinitions>
		</Grid>
	</Grid>
</UserControl>

Your Environment

JetBrains Rider 2024.1.3
Build #RD-241.17011.166, built on June 8, 2024
授权给 *****
您有此版本的永久回退许可证。
订阅有效期至 ****年**月**日。
Runtime version: 17.0.11+1-b1207.24 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
.NET Core v8.0.1 x64 (Server GC)
Jenkins Plugin 0.13.20-2023.2
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 8
Registry:
  ide.experimental.ui=true
  ide.new.project.model.index.case.sensitivity=true
Non-Bundled Plugins:
  com.intellij.javafx (1.0.4)
  com.intellij.zh (241.271)
  dev.turingcomplete.intellijdevelopertoolsplugins (4.3.0)
  com.intellij.resharper.HeapAllocationsViewer (2024.1.0)
  com.github.kikimanjaro.intellify (0.0.7)
  some.awesome (1.15)
  com.tang (1.4.13-IDEA241)
  avalonia-rider (1.3.2)
  Jenkins Control Plugin (0.13.20-2023.2)
  com.wakatime.intellij.plugin (14.4.0)
  com.github.jk1.ytplugin (2024.2.113)
  tv.twelvetone.intellij.plugins.intellivue (1.2.4)
  com.github.copilot (1.5.11.5872)
  com.github.blarc.ai-commits-intellij-plugin (2.0.0)
  cn.yiiguxing.plugin.translate (3.6.2)
  izhangzhihao.rainbow.brackets (2024.2.4-241)
@izhangzhihao
Copy link
Owner

Sadly, because the Rider does not have a light lang parser for the XAML file, this plugin could not be able to highlighting.

image image

@izhangzhihao izhangzhihao added the Rider specific Features/bugs about the Rider IDE label Jun 26, 2024
@Ruikoto
Copy link
Author

Ruikoto commented Jun 26, 2024

🥲It's a pity, I will try to report this situation to JetBrains.

@Ruikoto Ruikoto closed this as completed Jun 26, 2024
@Rnreck
Copy link

Rnreck commented Oct 26, 2024

I want Rainbow Brackets to support XAML files too, finally I found this issue 🥲🥲🥲. I hope this wonderful plugin will support it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Rider specific Features/bugs about the Rider IDE
Projects
None yet
Development

No branches or pull requests

3 participants