Highlighting of a makefile in eclipse - c++

I have two makefiles in Eclipse, one is named all.mak and the second is called Makefile.
My Problem is that Makefile is highlighted correctly when opend with the Makefile-Editor but alle.mak is not.
I know that under Window→Preferences→General→Editors→File Associations one can set the Makefile-Editor to open this file and I did so (but no highlighting for all.mak).
Is there another preference I have to make for correct highlighting of the all.mak-File?

Yes, there is another preference to set. Go to..
Open the preferences view: Window → Preferences
General (in left panel)
Content Types
In the right panel ("Content types"): Text
Makefile
Press the 'Add' button, and enter the same filename as you did in the File Association view.

Related

How to automatically fill "go to everything" [ctrl + t] with current text selection

When I have text selected in a VS 2017 text edit window and then hit ctrl+t to do ReSharper's 2017 Ultimate's "go to everything", the selected text is not automatically placed into the "go to everything" search field.
As automatically pasting selected text into search dialogs is pretty standard functionality, I'm hoping there is a way to configure ReSharper to do this but have not been able to find one.
Does anyone know? Thanks in advance!
Try ticking the checkbox Remember last search on ReSharper | Options | Environment | Search & Navigation page. According to the WebHelp page https://www.jetbrains.com/help/resharper/Reference__Options__Environment__Search_and_Navigation.html, that should help
ReSharper can remember the last input that you used to find something
with Search Everywhere/Go to Type, Go To File, and Go to Text actions.
When this option is selected, ReSharper will also use your current
selection in the editor as the initial search query. For example, you
can select a file name in a string and then press Ctrl+Shift+T to
search for files in your solution that match this name.

xcode change the console output to terminal 9.1

Hey guys i'm learning about algorithms at the moment and I have written the Lee algorithm.
What I'm trying to do now is highlight the shortest path it finds in red text in the console.
I found this thread which explains what it is I'm trying to do however the option is no longer there in xcode 9.1
The answer: Output bold text to console in C (on Mac - Xcode)
When I go through edit scheme > options > run the tickbox is not there, any ideas?
I had the same problem. Solution:
instead of 'edit scheme' click 'new scheme', give it a name and save
now choose that new scheme you've just created and click 'edit
scheme'
go to the 'Info' tab and in a menu 'Executable' choose
'Other...'
in file window go to search input field and type
'terminal' and click on its icon when you find it. Now you should see 'Terminal.app' in 'Executable' field
go to the 'Arguments' tab, click on + and copy and paste this line there: ${BUILT_PRODUCTS_DIR}/${FULL_PRODUCT_NAME}
click 'close' and run your program with your new scheme selected
Normally Xcode will open terminal for you. If not, you may also turn off any debug related fields in the 'Info' tab. Hope this helps!
Full tutorial here:
https://www.raywenderlich.com/163134/command-line-programs-macos-tutorial-2
when in edit scheme > options > run, by default it would be under info tab. That checkbox will be available under option section

Does ColdFusion Builder have split screen editing like Homesite+, and how do I turn it on?

Does ColdFusion Builder have split screen editing like Homesite+, and how do I turn it on? How do I activate word wrap?
Thanks much!
In order to see 2 files tiled at the same time within ColdFusion Builder 2, follow the steps below:
Open the file
Right click the tab with the file name
Choose Move Editor
You will see the file outlined in black in the interface, it is now attached to your cursor
Click to the right of the Source tab in the open area
This will allow you to view both files at the same time, one above the other
The file you select will be the active file
You can still use the Source and browser tabs, they will reflect whatever file is the active one
Word Wrap:
Go to Window > Preferences > HTML > Editors. Click the Advanced tab and check Enable word wrap. Restart CF Builder.
If you want to compare 2 files, there is an easier way.
Select both files
Right-click one of them
Select 'Compare With --> Each Other
Eclipse will then show you the 2 files side by side, and highlight any differences.
ColdFusion Builder 2016 (AKA 3.1) offers "split view" for both horizontal (CTRL+_) & vertical (CTRL+{), but the hotkeys don't appear to work at the moment. This can be accessed via the "Window | Editor" menu. You can also search the "Quick Access" search box and type "Split" and then choose the toggle options that appear.
In ColdFusion Builder 2016 the keyboard shortcut is: (CTRL+SHIFT+_) AND (CTRL+SHIFT+{)

Getting Xcode to recognise C++ header files without the '.h' extension (OpenSceneGraph)

OpenSceneGraph uses header files without the '.h' extension. Is there a way of getting Xcode to recognise the syntax as C++ and therefore allow me to have highlighting and jumping to definitions etc?
Eg: No highlighting:
Yes. Toggle the right panel (the rightmost icon of the "View" section of the toolbar, arrow 1 in the screenshot) with your file selected. Select the document tab in the panel (arrow 2), then find "File Type" under "Identity and Type" (arrow 3). Choose "C++ header" in the dropdown list.
You will need to reopen the file for the syntax coloring to kick in.

Pycharm: multiple tabs all with same name; how to highlight active file in project explorer?

With a number of different apps that all have their own version of "admin.py" and "views.py," etc., I have a hard time telling which one I have open when looking at the tabs (the tabs don't have the full path).
Is there a way to highlight which file I'm editing in the active tab? Normally with programs that use this format -- for instance Gmail -- the active section or file is highlighted on the left, but not so in PyCharm.
Use View | Select In | Project View or enable Autoscroll from Source option in the Project View.
In PyCharm 2.0 there will be Show directory in editor tabs for non-unique filenames option in Settings | Editor | Editor Tabs.
The project pane should have a row of buttons on the top. Mouse over them for tooltips, and look for the one that says "Autoscroll from source". Make sure to make the sidebar wide enough to see all the buttons.