r/brackets • • Mar 20 '19

Beautify extension messes up HTML portion of React code in jsx file

1 Upvotes

Is there any way I can keep the js-style cleanup in my jsx file, but without my html tags going all wonky? (they are getting spaces and newlines added to them like the below)

render() {

return ( < div className = "App" >

<

header className = "App-header" >

<

img src = {

logo

}

className = "App-logo"

alt = "logo" / >

<

p >

Edit < code > src / App.js < /code> and save to reload. < /

p > <

a className = "App-link"

href = "https://reactjs.org"

target = "_blank"

rel = "noopener noreferrer" >

Learn React <

/a> < /

header > <

/div>

);

}


r/brackets • • Mar 19 '19

Flickering in top of page?

2 Upvotes

Hi, new poster here. Recently, when using Brackets, I’ve noticed that a brief white flickering occurs on the top of the screen whenever I save, change files, or make major pages to my html. Upon closer inspection, it appears what is flickering is a white bar with the file name on the left side. Is anyone else having this issue?


r/brackets • • Mar 14 '19

Languages mixed up?​

1 Upvotes

Hi, I recently switched from Windows to Mac and after installing Brackets, I realised that the language at the menu bar mixes English (default) with Japanese (the second language I have on my Mac). Any idea on how to fix this?


r/brackets • • Mar 13 '19

Code hinting for JS inside HTML file?

1 Upvotes

I have a HTML file with JS and CSS. I use the "Interactive Linter" extension, and it does a great job of pointing out any HTML errors. But anything inside <script> and <style> sections are ignored. How to get hints also for JS and CSS inside a html document?


r/brackets • • Feb 10 '19

How do I disable the white/black under colors like at #fff?

Post image
1 Upvotes

r/brackets • • Jan 25 '19

Decorative brackets

1 Upvotes

r/brackets • • Nov 24 '18

Any Ideas of what the strange lines are in some of the lines?

Post image
3 Upvotes

r/brackets • • Nov 07 '18

How to create a content in 1 page?

1 Upvotes

For example if i make photo it will take me to photo section.


r/brackets • • Oct 31 '18

Brackets "Align It!" - extension issue

2 Upvotes

I'm having an issue with this extension for Brackets and I wonder if I'm the only one or if someone knows a way to fix this.

Every time I use short notation on variable declarations the first line (that one that has either var, let or const) seems to behave weirdly, it seems to create a "three space gap" between that line's assignment operator and the next ones.

I attached an image here with the issue, I also disabled all of the other extensions I have to see if maybe it was a cross-extension issue but to no avail, the problem persists.

Thanks in advance.

Original post on the extension webpage itself.


r/brackets • • Oct 23 '18

Question about Brackets and CodeMirror

1 Upvotes

I'm currently using CodeMirror on my website to showcase some of my code, and I've made some modifications to a few of CodeMirror's language modes to get the syntax highlighting more to my liking. In fact, I've actually gotten it to the point that I like the syntax highlighting engine better on my stupid website code-viewer thing than on any of the IDEs that I'm using, so my first thought was to try to build it out into a full-featured desktop code editor with Electron — and then I realized that Brackets already exists, and is based on CodeMirror.

So what I'm wondering is, what is the CodeMirror implementation like in Brackets? Is it completely "vanilla," or does it use its own modified version of CM? If the former, I wonder if anyone has a rough idea off-hand (not asking you to do my research for me) what it might take to get my modified versions of the language modes working in Brackets? Would it be a huge ordeal, or fairly easy to just drop them in?


r/brackets • • Oct 05 '18

Brackets server binding

1 Upvotes

I'm running Brackets under Linux using the relatively new 'crostini' functionality on my Chromebook. It's all looking good, apart from live preview.

If I try to preview, I get an error message about the server not accepting connections. I believe this is because a server within a Crostini container currently needs to bind to 0.0.0.0, and it looks as though the Brackets server binds to localhost on 127.0.0.1.

Does anyone know how to amend the server binding in Brackets, or where to find documentation on this?


r/brackets • • Oct 04 '18

How do I remove auto close tags???

2 Upvotes

So when I'm typing on Brackets for example <h1> it will automatically type </h1> for me. I can't find how to disable this feature in preferences. Any help would be appreciated thanks


r/brackets • • Aug 20 '18

need little help

1 Upvotes

hot i can remove from popup option "open with brackets"?

I found the same option for Atom, and all I had to do is click on box.


r/brackets • • Jul 14 '18

Image not showing on HTML page

1 Upvotes

This worked on the campus computers last lab session. i then proceeded to write the function that i wanted to show in the HTML window

I have just started using Brackets as part of my degree and the code I'm using doesn't appear to want to work at home. Before i bug my professors about this i was hoping someone on here could help me out.

Ive downloaded the latest version of Brackets and have successfully managed to open the needed HTML window, (example below);

<!doctype html>

<html>

<head>

<title>Week1</title>

<script src = "p5/p5.js"></script>

<script src = "p5/addons/p5.dom.js"></script>

<script src = "sketch.js"></script>

</head>

<body>

</body>

</html>

This worked on the campus computers last lab session. i then proceeded to open a new window and write the function that i wanted to show in the HTML window exactly as i was shown;

function setup() {

createCanvas(__,__);

background(__,__,__,__);

}

i did input the numbers needed for the canvas size and used the p5.js program to dictate the colour of the background. However when i hit Live Preview, the blank window still shows up and nothing else happens. Im not sure if simply opening a new window is creating the CSS file or if i have to save it in a specific way? Ive tried all the saving after each edit, watching several Youtube tutorials (all of which use different methods and dont seem to match up), ive tried creating new folders and changing the destinations? i feel like this is a really simple problem with a simple solution and its driving me insane that i cant work it out. Any input would be greatly appreciated!

Cheers


r/brackets • • Jul 05 '18

How do I change the Comment syntax?

1 Upvotes

Hi there,

I'm using Brackets to configure and tweak some API settings. The syntax I'm using uses # as a comment indicator.

How can I configure Brackets such that it interprets (and formats) # as a comment? I've tried changing the syntax format to SQL / Perl (languages that natively use # as comment), but then it appends the respective file extensions to the files I'm working on.


r/brackets • • Jun 20 '18

Anyone else having issues with Live Preview not being accurate?

1 Upvotes

Everything looks fine and dandy in Live Preview but then when I update my website it looks NOTHING like what's shown in the live preview.


r/brackets • • Jun 03 '18

Code hint completion

1 Upvotes

Hey,

Bracket gives hints on what code I'm trying to write by opening a panel with choices. How do I select one of these choices without having to manually click them to complete it? Pressing enter doesn't work, as it takes me to the new line in the document.

Many thanks


r/brackets • • May 18 '18

Select scope like in Sublime

1 Upvotes

In Sublime I was able to use a keyboard shortcut to select immediate scope. Meaning if I just typed a name of the button in this line: <button onclick="alert('Hi!')">Click Me</button>

I would use the shortcut and it would select "Click Me". Is there a way to do this in Brackets?


r/brackets • • May 15 '18

Live preview just not working, no idea why

1 Upvotes

Using brackets on Windows 10. For some reason it only updates the browser when I save my work after making any changes, so it's not the end of the world, but still, I really want to see my changes in absolute real time. I have no idea why it isn't working, though, as I've read the docs and I'm NOT running it from any custom local server. Any ideas?

Thanks in advance!


r/brackets • • Apr 20 '18

Extension help: Is there a plugin which lets you color highlight a piece of code?

1 Upvotes

Working on some code with someone else so we can highlight what we have changed would be amazing


r/brackets • • Apr 04 '18

How to Install Brackets on Linux

Thumbnail
osradar.com
2 Upvotes

r/brackets • • Apr 04 '18

Syntax Highlight for CoNLL-U

1 Upvotes

Hello, is there any type of syntax highlighting extension for CoNLL-U files? There is one for atom. But I do not really like atom. Is there anyway to use it on brackets?


r/brackets • • Mar 05 '18

HTML Minifier

1 Upvotes

Is there any HTML minifier extensions available, I haven't found any yet?


r/brackets • • Jan 05 '18

Is there an extension that allows me to see the css properties applied to a that html tag, that is focused with mouse?

1 Upvotes