Skip to content

About

Custom colors and/or background images for code regions in GMEdit.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

region-backgrounds

Allows to give your regions custom backgrounds.

Syntax:

GMS2:
#region[#RRGGBBAA]...
...
#endregion
#region[class-suffix]...
...
#endregion
GMS1:
//#region[#RRGGBBAA]...
...
//#endregion
//#region[class-suffix]...
...
//#endregion

Regions are re-indexed when line count changes and after saving.

This isn't the most efficient, but I've not seen issues in my tests.

screenshot

For class suffix, open your custom CSS file (right-click something in tree view, pick "Custom icon" > "Open custom CSS file"), and add a rule for .region-background-your-suffix - for example, in the screenshot above I'm using

.region-background-hello {
	background-image: url(test.jpg);
	background-attachment: fixed;
	background-position: center;
	background-size: cover;
	opacity: 0.7;
}

with test.jpg sitting in project directory.

Install instructions

About

Custom colors and/or background images for code regions in GMEdit.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages